Skip to content

Commit 5a030a5

Browse files
committed
patch 8.0.0110
Problem: Drop command doesn't use existing window. Solution: Check the window width properly. (Hirohito Higashi)
1 parent b129a44 commit 5a030a5

3 files changed

Lines changed: 13 additions & 2 deletions

File tree

src/buffer.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4858,8 +4858,8 @@ do_arg_all(
48584858
wpnext = wp->w_next;
48594859
buf = wp->w_buffer;
48604860
if (buf->b_ffname == NULL
4861-
|| (!keep_tabs && buf->b_nwindows > 1)
4862-
|| wp->w_width != Columns)
4861+
|| (!keep_tabs && (buf->b_nwindows > 1
4862+
|| wp->w_width != Columns)))
48634863
i = opened_len;
48644864
else
48654865
{

src/testdir/test_tabpage.vim

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,15 @@ function Test_tabpage()
6565
call assert_true(tabpagenr() == 2 && tabpagewinnr(2, '$') == 2 && tabpagewinnr(2) == 1)
6666
tabclose
6767
q
68+
"
69+
"
70+
" Test for ":tab drop vertical-split-window" to jump test1 buffer
71+
tabedit test1
72+
vnew
73+
tabfirst
74+
tab drop test1
75+
call assert_equal([2, 2, 2, 2], [tabpagenr('$'), tabpagenr(), tabpagewinnr(2, '$'), tabpagewinnr(2)])
76+
1tabonly
6877
endif
6978
"
7079
"

src/version.c

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

765765
static int included_patches[] =
766766
{ /* Add new patch number below this line */
767+
/**/
768+
110,
767769
/**/
768770
109,
769771
/**/

0 commit comments

Comments
 (0)