diff options
author | Lewis Russell <lewis6991@gmail.com> | 2023-04-26 12:00:12 +0100 |
---|---|---|
committer | zeertzjq <zeertzjq@outlook.com> | 2023-04-28 23:04:12 +0800 |
commit | d04770a5436f2cc054473b983109f7a94dec6878 (patch) | |
tree | 4e1377d36202385bcb0cd0a1f7dcb3f3d99eb7a5 /test | |
parent | 5cda9c267ab951c9d3ba05cddd0e8f63b3a7680a (diff) | |
download | rneovim-d04770a5436f2cc054473b983109f7a94dec6878.tar.gz rneovim-d04770a5436f2cc054473b983109f7a94dec6878.tar.bz2 rneovim-d04770a5436f2cc054473b983109f7a94dec6878.zip |
vim-patch:9.0.1369: still some "else if" constructs for setting options
Problem: Still some "else if" constructs for setting options.
Solution: Add a few more functions for handling options. (Yegappan
Lakshmanan, closes vim/vim#12090)
https://github.com/vim/vim/commit/c6ff21e876af0e3ad59664dd0f69359c4b6e9f1d
Diffstat (limited to 'test')
-rw-r--r-- | test/old/testdir/test_options.vim | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/old/testdir/test_options.vim b/test/old/testdir/test_options.vim index e4cdf539e2..769aa1c35f 100644 --- a/test/old/testdir/test_options.vim +++ b/test/old/testdir/test_options.vim @@ -1480,18 +1480,18 @@ func Test_string_option_revert_on_failure() if has('win32') && has('terminal') call add(optlist, ['termwintype', 'winpty', 'a123']) endif - if has('+toolbar') + if exists('+toolbar') call add(optlist, ['toolbar', 'text', 'a123']) call add(optlist, ['toolbariconsize', 'medium', 'a123']) endif - if has('+mouse') + if exists('+ttymouse') && !has('gui') call add(optlist, ['ttymouse', 'xterm', 'a123']) endif - if has('+vartabs') + if exists('+vartabs') call add(optlist, ['varsofttabstop', '12', 'a123']) call add(optlist, ['vartabstop', '4,20', '4,']) endif - if has('gui') + if exists('+winaltkeys') call add(optlist, ['winaltkeys', 'no', 'a123']) endif for opt in optlist |