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

Commit: 
https://github.com/vim/vim/commit/4fcbc70fb1d7a6973edcd24f998990934b05893f
Author: zeertzjq <[email protected]>
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 <[email protected]>
    Signed-off-by: Christian Brabandt <[email protected]>

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,
 /**/

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion visit 
https://groups.google.com/d/msgid/vim_dev/E1vjMr9-00AHJB-74%40256bit.org.

Raspunde prin e-mail lui