diff options
| author | Justin M. Keyes <justinkz@gmail.com> | 2017-07-29 02:40:25 +0200 |
|---|---|---|
| committer | ckelsel <ckelsel@hotmail.com> | 2017-08-14 07:45:49 +0800 |
| commit | 5ed2ab6d5327ed7c54edc9fa5eb1cfa447edbf2a (patch) | |
| tree | a4770dc928e5061e8d713e22b2948c8e229349f9 /src/nvim/testdir | |
| parent | 9b4cbd5cdcc807a69da649b96f52e8a3d56c1ff4 (diff) | |
| download | rneovim-5ed2ab6d5327ed7c54edc9fa5eb1cfa447edbf2a.tar.gz rneovim-5ed2ab6d5327ed7c54edc9fa5eb1cfa447edbf2a.tar.bz2 rneovim-5ed2ab6d5327ed7c54edc9fa5eb1cfa447edbf2a.zip | |
vim-patch:8.0.0524
Problem: Folds are messed up when 'encodin' is "utf-8".
Solution: Also set the fold character when it's not multi-byte.
https://github.com/vim/vim/commit/8da1e6cedf839902e15987a98733ebd31b5f1b81
Diffstat (limited to 'src/nvim/testdir')
| -rw-r--r-- | src/nvim/testdir/test_display.vim | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_display.vim b/src/nvim/testdir/test_display.vim index 4253b56933..48b7a2318e 100644 --- a/src/nvim/testdir/test_display.vim +++ b/src/nvim/testdir/test_display.vim @@ -54,6 +54,16 @@ func! Test_display_foldtext_mbyte() \ " 14 \u2502", \ ] call assert_equal(expect, lines) + + set fillchars=fold:-,vert:\| + let lines=ScreenLines([1,3], winwidth(0)+1) + let expect=[ + \ " 1 |", + \ "+ +-- 12 lines: 2". repeat("-", 23). "|", + \ " 14 |", + \ ] + call assert_equal(expect, lines) + set foldtext& fillchars& foldmethod& fdc& bw! endfunc |