diff options
author | zeertzjq <zeertzjq@outlook.com> | 2024-03-26 05:04:57 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-26 05:04:57 +0800 |
commit | fb4e2dbbebb25aae3cc303c030d21bfee850d274 (patch) | |
tree | 65d268ea84bc941a8405316361b0365ddbe32d7b /test | |
parent | 31c4cb23473a6e3a19a7986fae25c5bfc03b4eda (diff) | |
download | rneovim-fb4e2dbbebb25aae3cc303c030d21bfee850d274.tar.gz rneovim-fb4e2dbbebb25aae3cc303c030d21bfee850d274.tar.bz2 rneovim-fb4e2dbbebb25aae3cc303c030d21bfee850d274.zip |
vim-patch:9.1.0205: Cannot use modifiers before :-Ntabmove (#28031)
Problem: Cannot use modifiers before :-Ntabmove.
Solution: Check backwards from the command instead of checking from the
start of the command line. Slightly adjust docs to make them
more consistent (zeertzjq).
closes: vim/vim#14289
https://github.com/vim/vim/commit/076faac5378cf517baa8c331c57488d39efadec0
Diffstat (limited to 'test')
-rw-r--r-- | test/old/testdir/test_tabpage.vim | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/test/old/testdir/test_tabpage.vim b/test/old/testdir/test_tabpage.vim index 0f038c8bee..2bd2907a55 100644 --- a/test/old/testdir/test_tabpage.vim +++ b/test/old/testdir/test_tabpage.vim @@ -117,10 +117,16 @@ function Test_tabpage() call assert_equal(3, tabpagenr()) +3tabmove call assert_equal(6, tabpagenr()) + silent -tabmove + call assert_equal(5, tabpagenr()) + silent -2 tabmove + call assert_equal(3, tabpagenr()) + silent -2 tabmove + call assert_equal(1, tabpagenr()) - " The following are a no-op norm! 2gt call assert_equal(2, tabpagenr()) + " The following are a no-op tabmove 2 call assert_equal(2, tabpagenr()) 2tabmove |