Mercurial > vim
diff src/testdir/test_statusline.vim @ 22721:92a100fc5e17 v8.2.1909
patch 8.2.1909: number of status line items is limited to 80
Commit: https://github.com/vim/vim/commit/8133cc6bf454eb90bb0868f7cf806fce5c0c9fe6
Author: Bram Moolenaar <Bram@vim.org>
Date: Mon Oct 26 21:05:27 2020 +0100
patch 8.2.1909: number of status line items is limited to 80
Problem: Number of status line items is limited to 80.
Solution: Dynamically allocate the arrays. (Rom Grk, closes https://github.com/vim/vim/issues/7181)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Mon, 26 Oct 2020 21:15:06 +0100 |
parents | b74bdd85bb26 |
children | 90d1636a8fcb |
line wrap: on
line diff
--- a/src/testdir/test_statusline.vim +++ b/src/testdir/test_statusline.vim @@ -376,6 +376,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:-