diff options
author | Bram Moolenaar <Bram@vim.org> | 2020-12-22 20:35:40 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2020-12-22 20:35:40 +0100 |
commit | 3bdc90b7dfab314768a8f56454ea62929524f05c (patch) | |
tree | 0836d782d16f1749ae745e5a6f87972d1c0f5073 /src/proto/evalvars.pro | |
parent | e5492609b3a153c631f1d600ecdef1af1c913bef (diff) |
patch 8.2.2193: Vim9: can change constant in :def functionv8.2.2193
Problem: Vim9: can change constant in :def function.
Solution: Check if a variable is locked. (issue #7526)
Diffstat (limited to 'src/proto/evalvars.pro')
-rw-r--r-- | src/proto/evalvars.pro | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/proto/evalvars.pro b/src/proto/evalvars.pro index 4c9d645823..c597ca3720 100644 --- a/src/proto/evalvars.pro +++ b/src/proto/evalvars.pro @@ -70,6 +70,7 @@ void vars_clear_ext(hashtab_T *ht, int free_val); void delete_var(hashtab_T *ht, hashitem_T *hi); void set_var(char_u *name, typval_T *tv, int copy); void set_var_const(char_u *name, type_T *type, typval_T *tv_arg, int copy, int flags); +int var_check_permission(dictitem_T *di, char_u *name); int var_check_ro(int flags, char_u *name, int use_gettext); int var_check_lock(int flags, char_u *name, int use_gettext); int var_check_fixed(int flags, char_u *name, int use_gettext); |