diff options
| author | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2020-10-31 20:31:42 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-10-31 20:31:42 -0400 |
| commit | bc68653a869645e45f52edbf296106be5deabf2f (patch) | |
| tree | 6bf7f626d45c98b267aedf6c21bb64d23ac71479 /src/nvim/testdir | |
| parent | 98024853f4755f51e82526b45484bae0ec6042ba (diff) | |
| parent | 10bf69a43e8f58b0d49bc6253e4e2758060670a8 (diff) | |
| download | rneovim-bc68653a869645e45f52edbf296106be5deabf2f.tar.gz rneovim-bc68653a869645e45f52edbf296106be5deabf2f.tar.bz2 rneovim-bc68653a869645e45f52edbf296106be5deabf2f.zip | |
Merge pull request #13167 from romgrk/vim-8.2.1909
vim-patch:8.2.1909: number of status line items is limited to 80
Diffstat (limited to 'src/nvim/testdir')
| -rw-r--r-- | src/nvim/testdir/test_options.vim | 1 | ||||
| -rw-r--r-- | src/nvim/testdir/test_statusline.vim | 15 |
2 files changed, 15 insertions, 1 deletions
diff --git a/src/nvim/testdir/test_options.vim b/src/nvim/testdir/test_options.vim index 9e8da74db7..10e16f4198 100644 --- a/src/nvim/testdir/test_options.vim +++ b/src/nvim/testdir/test_options.vim @@ -267,7 +267,6 @@ func Test_set_errors() call assert_fails('set commentstring=x', 'E537:') call assert_fails('set complete=x', 'E539:') call assert_fails('set statusline=%{', 'E540:') - call assert_fails('set statusline=' . repeat("%p", 81), 'E541:') call assert_fails('set statusline=%(', 'E542:') if has('cursorshape') " This invalid value for 'guicursor' used to cause Vim to crash. diff --git a/src/nvim/testdir/test_statusline.vim b/src/nvim/testdir/test_statusline.vim index 7efd181d04..4e38f7ebd8 100644 --- a/src/nvim/testdir/test_statusline.vim +++ b/src/nvim/testdir/test_statusline.vim @@ -354,6 +354,21 @@ func Test_statusline() delfunc GetNested delfunc GetStatusLine + " Test statusline works with 80+ items + function! StatusLabel() + redrawstatus + return '[label]' + endfunc + let statusline = '%{StatusLabel()}' + for i in range(150) + let statusline .= '%#TabLine' . (i % 2 == 0 ? 'Fill' : 'Sel') . '#' . string(i)[0] + endfor + let &statusline = statusline + redrawstatus + set statusline& + delfunc StatusLabel + + " Check statusline in current and non-current window " with the 'fillchars' option. set fillchars=stl:^,stlnc:=,vert:\|,fold:-,diff:- |