aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/testdir/test_options.vim
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2022-06-13 22:04:39 +0800
committerGitHub <noreply@github.com>2022-06-13 22:04:39 +0800
commite13c36e312a9128f5c2ffd5a444939efc43bc0b5 (patch)
treea3c007473841fc5840bff647451a1cd592427bbc /src/nvim/testdir/test_options.vim
parent837360868b557dcb897690178d891c87e91fc27f (diff)
downloadrneovim-e13c36e312a9128f5c2ffd5a444939efc43bc0b5.tar.gz
rneovim-e13c36e312a9128f5c2ffd5a444939efc43bc0b5.tar.bz2
rneovim-e13c36e312a9128f5c2ffd5a444939efc43bc0b5.zip
vim-patch:8.2.0577: not all modifiers supported for :options (#18952)
Problem: Not all modifiers supported for :options. Solution: Use all cmdmod.split flags. (closes vim/vim#4401) https://github.com/vim/vim/commit/7a1637f4c00ac3d0cbf894803ada1586a1717470 Cherry-pick Test_options_command() change from patch 8.2.0540
Diffstat (limited to 'src/nvim/testdir/test_options.vim')
-rw-r--r--src/nvim/testdir/test_options.vim21
1 files changed, 20 insertions, 1 deletions
diff --git a/src/nvim/testdir/test_options.vim b/src/nvim/testdir/test_options.vim
index 9e16625cc2..f73cd5f5e6 100644
--- a/src/nvim/testdir/test_options.vim
+++ b/src/nvim/testdir/test_options.vim
@@ -98,6 +98,19 @@ func Test_options_command()
" close option-window
close
+ " Open the option-window at the top.
+ set splitbelow
+ topleft options
+ call assert_equal(1, winnr())
+ close
+
+ " Open the option-window at the bottom.
+ set nosplitbelow
+ botright options
+ call assert_equal(winnr('$'), winnr())
+ close
+ set splitbelow&
+
" Open the option-window in a new tab.
tab options
" Check if the option-window is opened in a tab.
@@ -105,9 +118,15 @@ func Test_options_command()
call assert_notequal('option-window', bufname(''))
normal gt
call assert_equal('option-window', bufname(''))
-
" close option-window
close
+
+ " Open the options window browse
+ if has('browse')
+ browse set
+ call assert_equal('option-window', bufname(''))
+ close
+ endif
endfunc
func Test_path_keep_commas()