File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -3016,7 +3016,9 @@ ex_packadd(exarg_T *eap)
30163016ex_options (
30173017 exarg_T * eap UNUSED )
30183018{
3019- vim_setenv ((char_u * )"OPTWIN_CMD" , (char_u * )(cmdmod .tab ? "tab" : "" ));
3019+ vim_setenv ((char_u * )"OPTWIN_CMD" ,
3020+ (char_u * )(cmdmod .tab ? "tab"
3021+ : (cmdmod .split & WSP_VERT ) ? "vert" : "" ));
30203022 cmd_source ((char_u * )SYS_OPTWIN_FILE , NULL );
30213023}
30223024#endif
Original file line number Diff line number Diff line change @@ -51,6 +51,32 @@ func Test_options()
5151 endtry
5252 call assert_equal (' ok' , caught)
5353
54+ " Check if the option-window is opened horizontally.
55+ wincmd j
56+ call assert_notequal (' option-window' , bufname (' ' ))
57+ wincmd k
58+ call assert_equal (' option-window' , bufname (' ' ))
59+ " close option-window
60+ close
61+
62+ " Open the option-window vertically.
63+ vert options
64+ " Check if the option-window is opened vertically.
65+ wincmd l
66+ call assert_notequal (' option-window' , bufname (' ' ))
67+ wincmd h
68+ call assert_equal (' option-window' , bufname (' ' ))
69+ " close option-window
70+ close
71+
72+ " Open the option-window in a new tab.
73+ tab options
74+ " Check if the option-window is opened in a tab.
75+ normal gT
76+ call assert_notequal (' option-window' , bufname (' ' ))
77+ normal gt
78+ call assert_equal (' option-window' , bufname (' ' ))
79+
5480 " close option-window
5581 close
5682endfunc
Original file line number Diff line number Diff line change @@ -767,6 +767,8 @@ static char *(features[]) =
767767
768768static int included_patches [] =
769769{ /* Add new patch number below this line */
770+ /**/
771+ 1363 ,
770772/**/
771773 1362 ,
772774/**/
You can’t perform that action at this time.
0 commit comments