commit 1ff0a1712ad6ecab37b7126a3a7278bb9dab0d6b
parent 8d99a56269bc1c9871c7ecbd18b888d6c79c3b6c
Author: zeertzjq <zeertzjq@outlook.com>
Date: Sun, 29 Sep 2024 17:05:56 +0800
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
https://github.com/vim/vim/commit/fa117387eea97306e4c59043b607ccb1533f64ea
Diffstat:
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/test/old/testdir/test_normal.vim b/test/old/testdir/test_normal.vim
@@ -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('.'))