changeset 23715:b6d8d9578375 v8.2.2399

patch 8.2.2399: fold test fails in wide terminal Commit: https://github.com/vim/vim/commit/7cf0c114d690c91ac88c92a1a6f1b1935cb6410f Author: Bram Moolenaar <Bram@vim.org> Date: Sun Jan 24 12:00:01 2021 +0100 patch 8.2.2399: fold test fails in wide terminal Problem: Fold test fails in wide terminal. Solution: Adjust the test. (Dominique Pelle, closes https://github.com/vim/vim/issues/7731, closes https://github.com/vim/vim/issues/7739)
author Bram Moolenaar <Bram@vim.org>
date Sun, 24 Jan 2021 12:15:04 +0100
parents a2a4b9b9658f
children 777aaba7c0ef
files src/testdir/test_fold.vim src/version.c
diffstat 2 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/testdir/test_fold.vim
+++ b/src/testdir/test_fold.vim
@@ -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)
--- a/src/version.c
+++ b/src/version.c
@@ -751,6 +751,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    2399,
+/**/
     2398,
 /**/
     2397,