mirror of
https://github.com/neovim/neovim.git
synced 2025-10-15 22:36:09 +00:00
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:
@@ -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
|
||||
|
Reference in New Issue
Block a user