Skip to content

Commit 4fcbc70

Browse files
zeertzjqchrisbra
authored andcommitted
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 <[email protected]> Signed-off-by: Christian Brabandt <[email protected]>
1 parent 8524102 commit 4fcbc70

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

src/testdir/test_fold.vim

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1504,6 +1504,7 @@ endfunc
15041504
func Test_foldtextresult_rightleft()
15051505
CheckFeature rightleft
15061506

1507+
let save_columns = &columns
15071508
new
15081509
set columns=70
15091510
setlocal rightleft
@@ -1519,6 +1520,7 @@ func Test_foldtextresult_rightleft()
15191520
call assert_equal('+-- 2 lines: ' .. multibyte, foldtextresult(1))
15201521

15211522
bw!
1523+
let &columns = save_columns
15221524
endfunc
15231525

15241526
" Test for merging two recursive folds when an intermediate line with no fold

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -734,6 +734,8 @@ static char *(features[]) =
734734

735735
static int included_patches[] =
736736
{ /* Add new patch number below this line */
737+
/**/
738+
2108,
737739
/**/
738740
2107,
739741
/**/

0 commit comments

Comments
 (0)