diff src/testdir/test_options.vim @ 16722:19ca17f9e155 v8.1.1363

patch 8.1.1363: ":vert options" does not make a vertical split commit https://github.com/vim/vim/commit/e0b5949a3b28be9940bb8a46b2579e960100b83b Author: Bram Moolenaar <Bram@vim.org> Date: Tue May 21 20:54:45 2019 +0200 patch 8.1.1363: ":vert options" does not make a vertical split Problem: ":vert options" does not make a vertical split. Solution: Pass the right modifiers in $OPTWIN_CMD. (Ken Takata, closes #4401)
author Bram Moolenaar <Bram@vim.org>
date Tue, 21 May 2019 21:00:07 +0200
parents ca1814eeecf5
children d726d8cce996
line wrap: on
line diff
--- a/src/testdir/test_options.vim
+++ b/src/testdir/test_options.vim
@@ -51,6 +51,32 @@ func Test_options()
   endtry
   call assert_equal('ok', caught)
 
+  " Check if the option-window is opened horizontally.
+  wincmd j
+  call assert_notequal('option-window', bufname(''))
+  wincmd k
+  call assert_equal('option-window', bufname(''))
+  " close option-window
+  close
+
+  " Open the option-window vertically.
+  vert options
+  " Check if the option-window is opened vertically.
+  wincmd l
+  call assert_notequal('option-window', bufname(''))
+  wincmd h
+  call assert_equal('option-window', bufname(''))
+  " close option-window
+  close
+
+  " Open the option-window in a new tab.
+  tab options
+  " Check if the option-window is opened in a tab.
+  normal gT
+  call assert_notequal('option-window', bufname(''))
+  normal gt
+  call assert_equal('option-window', bufname(''))
+
   " close option-window
   close
 endfunc