neovim

Neovim text editor
git clone https://git.dasho.dev/neovim.git
Log | Files | Refs | README

commit 94bd212dbcdff557273167067911f157ff02e871
parent 8db42b3b86cfbf18a150eb6a1700310b2271a73e
Author: zeertzjq <zeertzjq@outlook.com>
Date:   Sat,  4 Oct 2025 19:43:23 +0800

vim-patch:9.1.1824: tests: no test for displaying 'foldcolumn' with Unicode "foldinner" (#36019)

Problem:  tests: no test for displaying 'foldcolumn' with Unicode
          "foldinner" in 'fillchars'.
Solution: Add a few more test cases.  Also fix misplaced "foldinner"
          entry in version9.txt (zeertzjq).

closes: vim/vim#18483

https://github.com/vim/vim/commit/bcf44668f6c865c8e2fb6429183a14f806a4130c
Diffstat:
Mtest/old/testdir/test_display.vim | 38+++++++++++++++++++++++++++++++++++++-
1 file changed, 37 insertions(+), 1 deletion(-)

diff --git a/test/old/testdir/test_display.vim b/test/old/testdir/test_display.vim @@ -343,7 +343,6 @@ func Test_fold_fillchars() \ ] call assert_equal(expected, lines) - " check setting foldinner set fdc=1 foldmethod=indent foldlevel=10 call setline(1, ['one', ' two', ' two', ' three', ' three', 'four']) let lines = ScreenLines([1, 6], 22) @@ -357,6 +356,7 @@ func Test_fold_fillchars() \ ] call assert_equal(expected, lines) + " check setting foldinner set fillchars+=foldinner:\ let lines = ScreenLines([1, 6], 22) let expected = [ @@ -369,6 +369,42 @@ func Test_fold_fillchars() \ ] call assert_equal(expected, lines) + " check Unicode chars + set fillchars=foldopen:▼,foldclose:▶,fold:⋯,foldsep:‖,foldinner:⋮ + let lines = ScreenLines([1, 6], 22) + let expected = [ + \ ' one ', + \ '▼ two ', + \ '‖ two ', + \ '▼ three', + \ '⋮ three', + \ ' four ', + \ ] + call assert_equal(expected, lines) + + set fillchars-=foldinner:⋮ + let lines = ScreenLines([1, 6], 22) + let expected = [ + \ ' one ', + \ '▼ two ', + \ '‖ two ', + \ '▼ three', + \ '2 three', + \ ' four ', + \ ] + call assert_equal(expected, lines) + + normal! 5ggzc + let lines = ScreenLines([1, 5], 24) + let expected = [ + \ ' one ', + \ '▼ two ', + \ '‖ two ', + \ '▶+--- 2 lines: three⋯⋯⋯', + \ ' four ', + \ ] + call assert_equal(expected, lines) + %bw! set fillchars& fdc& foldmethod& foldenable& endfunc