0
0
mirror of https://github.com/vim/vim.git synced 2025-07-26 11:04:33 -04:00

patch 9.1.0746: tests: Test_halfpage_longline() fails on large terminals

Problem:  Test_halfpage_longline() fails on large terminals
          (lazypingu)
Solution: Use a window with known width (zeertzjq).

fixes: #15755
closes: #15756

Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
zeertzjq 2024-09-29 10:14:32 +02:00 committed by Christian Brabandt
parent 6db3fc5632
commit fa117387ee
No known key found for this signature in database
GPG Key ID: F3F92DA383FDDE09
2 changed files with 3 additions and 0 deletions

View File

@ -4266,6 +4266,7 @@ endfunc
" Test for Ctrl-D with long line " Test for Ctrl-D with long line
func Test_halfpage_longline() func Test_halfpage_longline()
10new 10new
40vsplit
call setline(1, ['long'->repeat(1000), 'short']) call setline(1, ['long'->repeat(1000), 'short'])
exe "norm! \<C-D>" exe "norm! \<C-D>"
call assert_equal(2, line('.')) call assert_equal(2, line('.'))

View File

@ -704,6 +704,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 */
/**/
746,
/**/ /**/
745, 745,
/**/ /**/