mirror of
https://github.com/neovim/neovim.git
synced 2026-04-05 07:09:23 +00:00
vim-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: vim/vim#19220
closes: vim/vim#19234
4fcbc70fb1
This commit is contained in:
@@ -1334,6 +1334,7 @@ endfunc
|
|||||||
func Test_foldtextresult_rightleft()
|
func Test_foldtextresult_rightleft()
|
||||||
CheckFeature rightleft
|
CheckFeature rightleft
|
||||||
|
|
||||||
|
let save_columns = &columns
|
||||||
new
|
new
|
||||||
set columns=70
|
set columns=70
|
||||||
setlocal rightleft
|
setlocal rightleft
|
||||||
@@ -1349,6 +1350,7 @@ func Test_foldtextresult_rightleft()
|
|||||||
call assert_equal('+-- 2 lines: ' .. multibyte, foldtextresult(1))
|
call assert_equal('+-- 2 lines: ' .. multibyte, foldtextresult(1))
|
||||||
|
|
||||||
bw!
|
bw!
|
||||||
|
let &columns = save_columns
|
||||||
endfunc
|
endfunc
|
||||||
|
|
||||||
" Test for merging two recursive folds when an intermediate line with no fold
|
" Test for merging two recursive folds when an intermediate line with no fold
|
||||||
|
|||||||
Reference in New Issue
Block a user