]> git.ipfire.org Git - thirdparty/vim.git/commit
patch 9.1.0665: Locked variable can be changed in a :for loop v9.1.0665
authorzeertzjq <zeertzjq@outlook.com>
Thu, 8 Aug 2024 19:05:57 +0000 (21:05 +0200)
committerChristian Brabandt <cb@256bit.org>
Thu, 8 Aug 2024 19:05:57 +0000 (21:05 +0200)
commit6b97d7ad197de0fb38648c91552c4374e39fdf98
treefaac7d8197db2529ef034add3a4d89bd5c34e9be
parent39eff4cdc055a0f0db0d32fcf7a74fe30ea54f25
patch 9.1.0665: Locked variable can be changed in a :for loop

Problem:  Locked variable can be changed in a :for loop.
Solution: Always do a full permission check on the first loop iteration
          where ASSIGN_DECL is not set (zeertzjq).

related: #12470
fixes: #15450
closes: #15454

Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
src/evalvars.c
src/testdir/test_eval_stuff.vim
src/version.c