@@ -58,7 +58,10 @@ function Test_cmdmods()
5858 call assert_equal (' lockmarks' , g: mods )
5959 loc MyCmd
6060 call assert_equal (' lockmarks' , g: mods )
61- " noautocmd MyCmd
61+ noautocmd MyCmd
62+ call assert_equal (' noautocmd' , g: mods )
63+ noa MyCmd
64+ call assert_equal (' noautocmd' , g: mods )
6265 noswapfile MyCmd
6366 call assert_equal (' noswapfile' , g: mods )
6467 nos MyCmd
@@ -72,29 +75,43 @@ function Test_cmdmods()
7275 call assert_equal (' silent' , g: mods )
7376 sil MyCmd
7477 call assert_equal (' silent' , g: mods )
78+ silent ! MyCmd
79+ call assert_equal (' silent!' , g: mods )
80+ sil ! MyCmd
81+ call assert_equal (' silent!' , g: mods )
7582 tab MyCmd
7683 call assert_equal (' tab' , g: mods )
7784 topleft MyCmd
7885 call assert_equal (' topleft' , g: mods )
7986 to MyCmd
8087 call assert_equal (' topleft' , g: mods )
81- " unsilent MyCmd
88+ unsilent MyCmd
89+ call assert_equal (' unsilent' , g: mods )
90+ uns MyCmd
91+ call assert_equal (' unsilent' , g: mods )
8292 verbose MyCmd
8393 call assert_equal (' verbose' , g: mods )
8494 verb MyCmd
8595 call assert_equal (' verbose' , g: mods )
96+ 0 verbose MyCmd
97+ call assert_equal (' 0verbose' , g: mods )
98+ 3 verbose MyCmd
99+ call assert_equal (' 3verbose' , g: mods )
100+ 999 verbose MyCmd
101+ call assert_equal (' 999verbose' , g: mods )
86102 vertical MyCmd
87103 call assert_equal (' vertical' , g: mods )
88104 vert MyCmd
89105 call assert_equal (' vertical' , g: mods )
90106
91107 aboveleft belowright botright browse confirm hide keepalt keepjumps
92- \ keepmarks keeppatterns lockmarks noswapfile silent tab
93- \ topleft verbose vertical MyCmd
108+ \ keepmarks keeppatterns lockmarks noautocmd noswapfile silent
109+ \ tab topleft unsilent verbose vertical MyCmd
94110
95111 call assert_equal (' browse confirm hide keepalt keepjumps ' .
96- \ ' keepmarks keeppatterns lockmarks noswapfile silent ' .
97- \ ' verbose aboveleft belowright botright tab topleft vertical' , g: mods )
112+ \ ' keepmarks keeppatterns lockmarks noswapfile unsilent noautocmd ' .
113+ \ ' silent verbose aboveleft belowright botright tab topleft vertical' ,
114+ \ g: mods )
98115
99116 let g: mods = ' '
100117 command ! -nargs =* MyQCmd let g: mods .= ' <q-mods> '
0 commit comments