]> git.ipfire.org Git - thirdparty/vim.git/commit
patch 8.2.1471: :const only locks the variable, not the value v8.2.1471
authorBram Moolenaar <Bram@vim.org>
Sun, 16 Aug 2020 20:50:01 +0000 (22:50 +0200)
committerBram Moolenaar <Bram@vim.org>
Sun, 16 Aug 2020 20:50:01 +0000 (22:50 +0200)
commit241572794f7e93d2f8b762de2300e5f7e4f07628
tree86330e27b7484a12b27bbc36062f7a00516f8723
parentc0f8823ee4ca629db5446ba0a935f68d4a4fb193
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)
src/evalvars.c
src/testdir/test_const.vim
src/version.c