0
0
mirror of https://github.com/vim/vim.git synced 2025-09-23 03:43:49 -04:00

patch 8.2.1471: :const only locks the variable, not the value

Problem:    :const only locks the variable, not the value.
Solution:   Lock the value as ":lockvar 1 var" would do. (closes #6719)
This commit is contained in:
Bram Moolenaar
2020-08-16 22:50:01 +02:00
parent c0f8823ee4
commit 241572794f
3 changed files with 11 additions and 5 deletions

View File

@@ -3087,7 +3087,7 @@ set_var_const(
}
if (flags & LET_IS_CONST)
di->di_tv.v_lock |= VAR_LOCKED;
item_lock(&di->di_tv, 1, TRUE);
}
/*