]> granicus.if.org Git - vim/commitdiff
patch 8.2.2399: fold test fails in wide terminal v8.2.2399
authorBram Moolenaar <Bram@vim.org>
Sun, 24 Jan 2021 11:00:01 +0000 (12:00 +0100)
committerBram Moolenaar <Bram@vim.org>
Sun, 24 Jan 2021 11:00:01 +0000 (12:00 +0100)
Problem:    Fold test fails in wide terminal.
Solution:   Adjust the test. (Dominique Pelle, closes #7731, closes #7739)

src/testdir/test_fold.vim
src/version.c

index 895a96b1270fe0469ae51456bfe2724ae60a0171..8206193c4a4008052dd579982fdd9a54a55956a0 100644 (file)
@@ -864,7 +864,7 @@ func Test_fold_relative_move()
   set fdm=indent sw=2 wrap tw=80
 
   let content = [ '  foo', '  bar', '  baz',
-              \   repeat('x', 100),
+              \   repeat('x', &columns + 1),
               \   '  foo', '  bar', '  baz'
               \ ]
   call append(0, content)
index 568756b397368ac8a5e4bcb8a05e6575ab671ec2..55ce7133b64ec0173534e9de2737ebcb94c66991 100644 (file)
@@ -750,6 +750,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    2399,
 /**/
     2398,
 /**/