]> granicus.if.org Git - vim/commitdiff
patch 8.1.0241: effect of ":tabmove N" is not clear v8.1.0241
authorBram Moolenaar <Bram@vim.org>
Tue, 7 Aug 2018 11:14:46 +0000 (13:14 +0200)
committerBram Moolenaar <Bram@vim.org>
Tue, 7 Aug 2018 11:14:46 +0000 (13:14 +0200)
Problem:    Effect of ":tabmove N" is not clear.
Solution:   Add a test that shows the behavior. (Christian Brabandt,
            closes #3288)

src/testdir/test_tabpage.vim
src/version.c

index f4fbf28d19a92f67f17e9fef69c40d93711e1382..add9b3d7cffa6fa373f20e6433586f82abaff754 100644 (file)
@@ -105,6 +105,19 @@ function Test_tabpage()
   call assert_equal(4, tabpagenr())
   7tabmove 5
   call assert_equal(5, tabpagenr())
+
+  " The following are a no-op
+  norm! 2gt
+  call assert_equal(2, tabpagenr())
+  tabmove 2
+  call assert_equal(2, tabpagenr())
+  2tabmove
+  call assert_equal(2, tabpagenr())
+  tabmove 1
+  call assert_equal(2, tabpagenr())
+  1tabmove
+  call assert_equal(2, tabpagenr())
+
   call assert_fails("99tabmove", 'E16:')
   call assert_fails("+99tabmove", 'E16:')
   call assert_fails("-99tabmove", 'E16:')
index c3b7add519f56d29f4f75d8f6e69bd0d819c3100..6162752f20891d782bcfdfea38fba885ad6c2b54 100644 (file)
@@ -794,6 +794,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    241,
 /**/
     240,
 /**/