summaryrefslogtreecommitdiff
path: root/src/testdir/test_tabpage.vim
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2016-12-01 17:48:29 +0100
committerBram Moolenaar <Bram@vim.org>2016-12-01 17:48:29 +0100
commit5a030a540f4157d5c9905e3564282c92b4dcec9a (patch)
treeaed80b43f0c4fed9445a8a8a11d2896e57c8977b /src/testdir/test_tabpage.vim
parentb129a447f3b580d4c941869672b0557c52c37e4d (diff)
downloadvim-git-5a030a540f4157d5c9905e3564282c92b4dcec9a.tar.gz
patch 8.0.0110v8.0.0110
Problem: Drop command doesn't use existing window. Solution: Check the window width properly. (Hirohito Higashi)
Diffstat (limited to 'src/testdir/test_tabpage.vim')
-rw-r--r--src/testdir/test_tabpage.vim9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/testdir/test_tabpage.vim b/src/testdir/test_tabpage.vim
index 3f69fb919..172010745 100644
--- a/src/testdir/test_tabpage.vim
+++ b/src/testdir/test_tabpage.vim
@@ -65,6 +65,15 @@ function Test_tabpage()
call assert_true(tabpagenr() == 2 && tabpagewinnr(2, '$') == 2 && tabpagewinnr(2) == 1)
tabclose
q
+ "
+ "
+ " Test for ":tab drop vertical-split-window" to jump test1 buffer
+ tabedit test1
+ vnew
+ tabfirst
+ tab drop test1
+ call assert_equal([2, 2, 2, 2], [tabpagenr('$'), tabpagenr(), tabpagewinnr(2, '$'), tabpagewinnr(2)])
+ 1tabonly
endif
"
"