vim-patch:9.1.0746: tests: Test_halfpage_longline() fails on large terminals (#30567)

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

fixes: vim/vim#15755
closes: vim/vim#15756

fa117387ee
This commit is contained in:
zeertzjq
2024-09-29 17:05:56 +08:00
committed by GitHub
parent 8d99a56269
commit 1ff0a1712a

View File

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