]> git.ipfire.org Git - thirdparty/vim.git/commit
patch 9.1.1807: :set doesn't clear local insecure flag like :setlocal does v9.1.1807
authorzeertzjq <zeertzjq@outlook.com>
Mon, 29 Sep 2025 19:26:36 +0000 (19:26 +0000)
committerChristian Brabandt <cb@256bit.org>
Mon, 29 Sep 2025 19:26:36 +0000 (19:26 +0000)
commitfec5586a45dac86f0124f1b6dbd9f61eb418313a
tree1d39aeb2366d17ae53c93415cf226b621ebda1b9
parent992e30774f5ec81f53d5554c42137d3c85999081
patch 9.1.1807: :set doesn't clear local insecure flag like :setlocal does

Problem:  :set doesn't clear local insecure flag like :setlocal does.
Solution: Also clear the local insecure flag when using :set (zeertzjq).

This applies to local options like 'wrap', 'foldtext' and 'foldexpr',
whose global flags are actually never used.  For global-local options
like 'statusline' the behavior is already correct, so add some tests.

related: #18434

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