vim-patch:9.0.0786: user command does not get number from :tab modifier (#20716)

Problem:    User command does not get number from :tab modifier.
Solution:   Include the number. (closes vim/vim#11393, closes vim/vim#6901)
208567e9d7
This commit is contained in:
zeertzjq
2022-10-18 20:46:42 +08:00
committed by GitHub
parent 97164748b9
commit 4d896be681
2 changed files with 25 additions and 2 deletions

View File

@@ -79,6 +79,19 @@ function Test_cmdmods()
call assert_equal('silent!', g:mods)
tab MyCmd
call assert_equal('tab', g:mods)
0tab MyCmd
call assert_equal('0tab', g:mods)
tab split
tab MyCmd
call assert_equal('tab', g:mods)
1tab MyCmd
call assert_equal('1tab', g:mods)
tabprev
tab MyCmd
call assert_equal('tab', g:mods)
2tab MyCmd
call assert_equal('2tab', g:mods)
2tabclose
topleft MyCmd
call assert_equal('topleft', g:mods)
to MyCmd