diff options
author | Yegappan Lakshmanan <yegappan@yahoo.com> | 2023-03-02 14:46:48 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2023-03-02 14:46:48 +0000 |
commit | c6ff21e876af0e3ad59664dd0f69359c4b6e9f1d (patch) | |
tree | ef51d81e472c4addb48ec3e3ccc6a42a659e5be9 /src/testdir | |
parent | 4ed914b18a47192f79f342bea5e8f59e120d5260 (diff) |
patch 9.0.1369: still some "else if" constructs for setting optionsv9.0.1369
Problem: Still some "else if" constructs for setting options.
Solution: Add a few more functions for handling options. (Yegappan
Lakshmanan, closes #12090)
Diffstat (limited to 'src/testdir')
-rw-r--r-- | src/testdir/test_options.vim | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/testdir/test_options.vim b/src/testdir/test_options.vim index bad8dd6094..7bd42164d0 100644 --- a/src/testdir/test_options.vim +++ b/src/testdir/test_options.vim @@ -1640,18 +1640,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 |