1
0
forked from aniani/vim

patch 8.2.2260: window resize test fails in very wide terminal

Problem:    Window resize test fails in very wide terminal.
Solution:   Resize using the 'columns' option.  (Vladimir Lomov, closes #7592)
This commit is contained in:
Bram Moolenaar
2021-01-01 14:31:34 +01:00
parent a387083b2f
commit 5efe0e5d16
2 changed files with 3 additions and 1 deletions

View File

@@ -1154,7 +1154,7 @@ func Test_window_resize()
wincmd l wincmd l
let other_winnr = winnr('h') let other_winnr = winnr('h')
call assert_notequal(winnr(), other_winnr) call assert_notequal(winnr(), other_winnr)
exe 'vert ' .. other_winnr .. 'resize -100' exe 'vert ' .. other_winnr .. 'resize -' .. &columns
call assert_equal(0, winwidth(other_winnr)) call assert_equal(0, winwidth(other_winnr))
%bwipe! %bwipe!

View File

@@ -750,6 +750,8 @@ static char *(features[]) =
static int included_patches[] = static int included_patches[] =
{ /* Add new patch number below this line */ { /* Add new patch number below this line */
/**/
2260,
/**/ /**/
2259, 2259,
/**/ /**/