diff options
author | zeertzjq <zeertzjq@outlook.com> | 2024-10-22 09:05:14 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-10-22 09:05:14 +0800 |
commit | f663243e95f488b8f4224bdae2697ddac21d0ffb (patch) | |
tree | 944b6e4c5e0593605060ce96861d5f3ddf94a100 /scripts/gen_eval_files.lua | |
parent | c8e47f648052f8001d8a493cf7ca6c4867a36bc3 (diff) | |
download | rneovim-f663243e95f488b8f4224bdae2697ddac21d0ffb.tar.gz rneovim-f663243e95f488b8f4224bdae2697ddac21d0ffb.tar.bz2 rneovim-f663243e95f488b8f4224bdae2697ddac21d0ffb.zip |
vim-patch:9.1.0797: testing of options can be further improved (#30893)
Problem: testing of options can be further improved
Solution: split the generated option test into test_options_all.vim,
add more test cases, save and restore values, fix use-after-free
closes: vim/vim#15894
https://github.com/vim/vim/commit/6eca04e9f1d446dc509ba51e32da56fa413fe2f0
Co-authored-by: Milly <milly.ca@gmail.com>
Diffstat (limited to 'scripts/gen_eval_files.lua')
-rwxr-xr-x | scripts/gen_eval_files.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/gen_eval_files.lua b/scripts/gen_eval_files.lua index b9ea4e73f0..eb92e10401 100755 --- a/scripts/gen_eval_files.lua +++ b/scripts/gen_eval_files.lua @@ -670,7 +670,7 @@ local function scope_to_doc(s) return m[s[1]] end assert(s[1] == 'global') - return 'global or ' .. m[s[2]] .. ' |global-local|' + return 'global or ' .. m[s[2]] .. (s[2] ~= 'tab' and ' |global-local|' or '') end -- @param o vim.option_meta |