diff options
| author | zeertzjq <zeertzjq@outlook.com> | 2022-01-16 18:44:28 +0800 |
|---|---|---|
| committer | zeertzjq <zeertzjq@outlook.com> | 2022-01-16 19:54:27 +0800 |
| commit | be15ac06badbea6b11390ad7d9c2ddd4aea73480 (patch) | |
| tree | 34a1c9fa827b7e51f82272cbe7ef6af2f3f98494 /src/nvim/testdir | |
| parent | 7085e5b0c8588618e643c87802afc515f67812d9 (diff) | |
| download | rneovim-be15ac06badbea6b11390ad7d9c2ddd4aea73480.tar.gz rneovim-be15ac06badbea6b11390ad7d9c2ddd4aea73480.tar.bz2 rneovim-be15ac06badbea6b11390ad7d9c2ddd4aea73480.zip | |
feat(statusline): support multibyte fillchar
This includes a partial port of Vim patch 8.2.2569 and some changes to
nvim_eval_statusline() to allow a multibyte fillchar. Literally every
line of C code touched by that patch has been refactored in Nvim, and
that patch contains some irrelevant foldcolumn tests I'm not sure how to
port (as Nvim's foldcolumn behavior has diverged from Vim's).
Diffstat (limited to 'src/nvim/testdir')
| -rw-r--r-- | src/nvim/testdir/test_statusline.vim | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_statusline.vim b/src/nvim/testdir/test_statusline.vim index a3e4dcdd25..9c9853674b 100644 --- a/src/nvim/testdir/test_statusline.vim +++ b/src/nvim/testdir/test_statusline.vim @@ -498,5 +498,20 @@ func Test_statusline_after_split_vsplit() set ls& stl& endfunc +" Test using a multibyte character for 'stl' and 'stlnc' items in 'fillchars' +" with a custom 'statusline' +func Test_statusline_mbyte_fillchar() + only + set laststatus=2 + set fillchars=vert:\|,fold:-,stl:━,stlnc:═ + set statusline=a%=b + call assert_match('^a\+━\+b$', s:get_statusline()) + vnew + call assert_match('^a\+━\+b━a\+═\+b$', s:get_statusline()) + wincmd w + call assert_match('^a\+═\+b═a\+━\+b$', s:get_statusline()) + set statusline& fillchars& laststatus& + %bw! +endfunc " vim: shiftwidth=2 sts=2 expandtab |