diff options
author | Jan Edmund Lazo <janedmundlazo@hotmail.com> | 2018-08-08 19:35:48 -0400 |
---|---|---|
committer | Jan Edmund Lazo <janedmundlazo@hotmail.com> | 2018-08-08 19:36:07 -0400 |
commit | f7f79c60bb7d8ef25fd8a183f4a67ff0c95cf9d3 (patch) | |
tree | 53480fc96ed8b6b234b5cbc6f5b582781ce4c03f | |
parent | 345789f9ef5d1791b188e8f39214c821ad516109 (diff) | |
download | rneovim-f7f79c60bb7d8ef25fd8a183f4a67ff0c95cf9d3.tar.gz rneovim-f7f79c60bb7d8ef25fd8a183f4a67ff0c95cf9d3.tar.bz2 rneovim-f7f79c60bb7d8ef25fd8a183f4a67ff0c95cf9d3.zip |
vim-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 vim/vim#3288)
https://github.com/vim/vim/commit/7cc596547a582e7bc18d91312eb674906ebdc5c2
-rw-r--r-- | src/nvim/testdir/test_tabpage.vim | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_tabpage.vim b/src/nvim/testdir/test_tabpage.vim index 6ca79731bc..a2eec2cc11 100644 --- a/src/nvim/testdir/test_tabpage.vim +++ b/src/nvim/testdir/test_tabpage.vim @@ -107,6 +107,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:') |