]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 9.1.2108: tests: Test_foldtextresult_rightleft() does not restore 'columns' master v9.1.2108
authorzeertzjq <zeertzjq@outlook.com>
Fri, 23 Jan 2026 19:24:11 +0000 (19:24 +0000)
committerChristian Brabandt <cb@256bit.org>
Fri, 23 Jan 2026 19:26:33 +0000 (19:26 +0000)
Problem:  Test_foldtextresult_rightleft() does not restore 'columns'
          (after v9.1.2102)
Solution: Save and restore the value of 'columns' (zeertzjq).

related: #19220
closes:  #19234

Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
src/testdir/test_fold.vim
src/version.c

index 76398855842fd3901a2543dcd395759d5a306e56..c377a957375805e6962d43fdd561c9eeda32e0b8 100644 (file)
@@ -1504,6 +1504,7 @@ endfunc
 func Test_foldtextresult_rightleft()
   CheckFeature rightleft
 
+  let save_columns = &columns
   new
   set columns=70
   setlocal rightleft
@@ -1519,6 +1520,7 @@ func Test_foldtextresult_rightleft()
   call assert_equal('+--  2 lines: ' .. multibyte, foldtextresult(1))
 
   bw!
+  let &columns = save_columns
 endfunc
 
 " Test for merging two recursive folds when an intermediate line with no fold
index 6e02d540a941f665164070b25afa73fd5a3bc45f..a3c72bdd2a4680a5fd58e83da74b86119c766f97 100644 (file)
@@ -734,6 +734,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    2108,
 /**/
     2107,
 /**/