diff options
author | zeertzjq <zeertzjq@outlook.com> | 2023-02-11 20:00:31 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-11 20:00:31 +0800 |
commit | 374955bcc571dff05f068ec18d0f578d1f334c5f (patch) | |
tree | 7abf6225aa4751316e1d6df16c3fcd3b4d311861 /src/nvim/testdir | |
parent | 414ff7742faad10f407f141534d5314acda0ec70 (diff) | |
download | rneovim-374955bcc571dff05f068ec18d0f578d1f334c5f.tar.gz rneovim-374955bcc571dff05f068ec18d0f578d1f334c5f.tar.bz2 rneovim-374955bcc571dff05f068ec18d0f578d1f334c5f.zip |
vim-patch:9.0.1300: 'statusline' only supports one "%=" item (#22218)
Problem: 'statusline' only supports one "%=" item.
Solution: Add support for multiple "%=" items. (TJ DeVries, Yegappan
Lakshmanan, closes vim/vim#11970, closes vim/vim#11965)
https://github.com/vim/vim/commit/3ec78f973fdaec2cea8e036ed38037b2fe40670b
Co-authored-by: Yegappan Lakshmanan <yegappan@yahoo.com>
Diffstat (limited to 'src/nvim/testdir')
-rw-r--r-- | src/nvim/testdir/test_statusline.vim | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_statusline.vim b/src/nvim/testdir/test_statusline.vim index 990c852ccd..1e06ad1c67 100644 --- a/src/nvim/testdir/test_statusline.vim +++ b/src/nvim/testdir/test_statusline.vim @@ -231,6 +231,10 @@ func Test_statusline() " %=: Separation point between left and right aligned items. set statusline=foo%=bar call assert_match('^foo\s\+bar\s*$', s:get_statusline()) + set statusline=foo%=bar%=baz + call assert_match('^foo\s\+bar\s\+baz\s*$', s:get_statusline()) + set statusline=foo%=bar%=baz%=qux + call assert_match('^foo\s\+bar\s\+baz\s\+qux\s*$', s:get_statusline()) " Test min/max width, leading zeroes, left/right justify. set statusline=%04B |