Skip to content

Commit 7cc5965

Browse files
committed
patch 8.1.0241: effect of ":tabmove N" is not clear
Problem: Effect of ":tabmove N" is not clear. Solution: Add a test that shows the behavior. (Christian Brabandt, closes #3288)
1 parent 3cb4448 commit 7cc5965

2 files changed

Lines changed: 15 additions & 0 deletions

File tree

src/testdir/test_tabpage.vim

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,19 @@ function Test_tabpage()
105105
call assert_equal(4, tabpagenr())
106106
7tabmove 5
107107
call assert_equal(5, tabpagenr())
108+
109+
" The following are a no-op
110+
norm! 2gt
111+
call assert_equal(2, tabpagenr())
112+
tabmove 2
113+
call assert_equal(2, tabpagenr())
114+
2tabmove
115+
call assert_equal(2, tabpagenr())
116+
tabmove 1
117+
call assert_equal(2, tabpagenr())
118+
1tabmove
119+
call assert_equal(2, tabpagenr())
120+
108121
call assert_fails("99tabmove", 'E16:')
109122
call assert_fails("+99tabmove", 'E16:')
110123
call assert_fails("-99tabmove", 'E16:')

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -794,6 +794,8 @@ static char *(features[]) =
794794

795795
static int included_patches[] =
796796
{ /* Add new patch number below this line */
797+
/**/
798+
241,
797799
/**/
798800
240,
799801
/**/

0 commit comments

Comments
 (0)