patch 9.1.2108: tests: Test_foldtextresult_rightleft() does not restore 'columns'

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>
This commit is contained in:
zeertzjq
2026-01-23 19:24:11 +00:00
committed by Christian Brabandt
parent 85241020e8
commit 4fcbc70fb1
2 changed files with 4 additions and 0 deletions
+2
View 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
+2
View File
@@ -734,6 +734,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
2108,
/**/
2107,
/**/