]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 9.1.0746: tests: Test_halfpage_longline() fails on large terminals v9.1.0746
authorzeertzjq <zeertzjq@outlook.com>
Sun, 29 Sep 2024 08:14:32 +0000 (10:14 +0200)
committerChristian Brabandt <cb@256bit.org>
Sun, 29 Sep 2024 08:16:18 +0000 (10:16 +0200)
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>
src/testdir/test_normal.vim
src/version.c

index adb5ce725dcba4d98f5ca87c7f97e00162edcddb..bd830511e4926cdca9d5b8924e1974dc904cd255 100644 (file)
@@ -4266,6 +4266,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('.'))
index cde28a3cd5a1bb4a59b0e95469c37fac7b8b77f5..10b0f86c1cb43a046b42be3d6185fdc3cedf107d 100644 (file)
@@ -704,6 +704,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    746,
 /**/
     745,
 /**/