diff options
author | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2020-08-16 20:13:52 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-16 17:13:52 -0700 |
commit | 161cdba1e3b8b53f474b2e76655c8c1a5217802f (patch) | |
tree | a9fccee9380e6ec3c4d600c37ce28f16146a6f1d /src/nvim/eval.c | |
parent | 83f5bf435d84f314c251d3fe1ee7e670bec80d4b (diff) | |
download | rneovim-161cdba1e3b8b53f474b2e76655c8c1a5217802f.tar.gz rneovim-161cdba1e3b8b53f474b2e76655c8c1a5217802f.tar.bz2 rneovim-161cdba1e3b8b53f474b2e76655c8c1a5217802f.zip |
vim-patch:8.2.1471: :const only locks the variable, not the value (#12765)
Problem: :const only locks the variable, not the value.
Solution: Lock the value as ":lockvar 1 var" would do. (closes vim/vim#6719)
https://github.com/vim/vim/commit/241572794f7e93d2f8b762de2300e5f7e4f07628
Diffstat (limited to 'src/nvim/eval.c')
-rw-r--r-- | src/nvim/eval.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/eval.c b/src/nvim/eval.c index b37fd85659..8e3109b8be 100644 --- a/src/nvim/eval.c +++ b/src/nvim/eval.c @@ -9045,7 +9045,7 @@ static void set_var_const(const char *name, const size_t name_len, } if (is_const) { - v->di_tv.v_lock |= VAR_LOCKED; + tv_item_lock(&v->di_tv, 1, true); } } |