diff options
author | Bram Moolenaar <Bram@vim.org> | 2022-04-04 14:58:06 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-04-04 14:58:06 +0100 |
commit | 7a411a306f90339d8686e42ac16e1ae4fc7533c5 (patch) | |
tree | def2607a7145867c305c4d55baf955bc21649bde /src/eval.c | |
parent | 15f74fab653a784548d5d966644926b47ba2cfa7 (diff) |
patch 8.2.4682: Vim9: can use :unlockvar for const variablev8.2.4682
Problem: Vim9: can use :unlockvar for const variable. (Ernie Rael)
Solution: Check whether the variable is a const.
Diffstat (limited to 'src/eval.c')
-rw-r--r-- | src/eval.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/eval.c b/src/eval.c index 2cde642161..b30577fecc 100644 --- a/src/eval.c +++ b/src/eval.c @@ -1065,7 +1065,7 @@ get_lval( && lp->ll_tv == &v->di_tv && ht != NULL && ht == get_script_local_ht()) { - svar_T *sv = find_typval_in_script(lp->ll_tv, 0); + svar_T *sv = find_typval_in_script(lp->ll_tv, 0, TRUE); // Vim9 script local variable: get the type if (sv != NULL) |