diff src/testdir/test_tabpage.vim @ 14455:f713e016097d v8.1.0241

patch 8.1.0241: effect of ":tabmove N" is not clear commit https://github.com/vim/vim/commit/7cc596547a582e7bc18d91312eb674906ebdc5c2 Author: Bram Moolenaar <Bram@vim.org> Date: Tue Aug 7 13:14:46 2018 +0200 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)
author Christian Brabandt <cb@256bit.org>
date Tue, 07 Aug 2018 13:15:04 +0200
parents 29bad8212db3
children 060cb54565c1
line wrap: on
line diff
--- a/src/testdir/test_tabpage.vim
+++ b/src/testdir/test_tabpage.vim
@@ -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:')