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

1 view
Skip to first unread message

Christian Brabandt

unread,
Jan 23, 2026, 2:31:27 PM (2 days ago) Jan 23
to vim...@googlegroups.com
patch 9.1.2108: tests: Test_foldtextresult_rightleft() does not restore 'columns'

Commit: https://github.com/vim/vim/commit/4fcbc70fb1d7a6973edcd24f998990934b05893f
Author: zeertzjq <zeer...@outlook.com>
Date: Fri Jan 23 19:24:11 2026 +0000

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 <zeer...@outlook.com>
Signed-off-by: Christian Brabandt <c...@256bit.org>

diff --git a/src/testdir/test_fold.vim b/src/testdir/test_fold.vim
index 763988558..c377a9573 100644
--- a/src/testdir/test_fold.vim
+++ b/src/testdir/test_fold.vim
@@ -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
diff --git a/src/version.c b/src/version.c
index 6e02d540a..a3c72bdd2 100644
--- a/src/version.c
+++ b/src/version.c
@@ -734,6 +734,8 @@ static char *(features[]) =

static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 2108,
/**/
2107,
/**/
Reply all
Reply to author
Forward
0 new messages