Statusline item group issue

11 views
Skip to first unread message

Chainsaw

unread,
Feb 21, 2022, 10:24:00 AM2/21/22
to vim...@googlegroups.com
Hello,

gVim Windows x64 daily version (currently 8.2.4428).

For 'statusline', restore normal highlight %0* or %* will cause the items
inside an item group %(%) to fail.

Example:
highlight StatusLine and StatusLineNC are defined.
Highlight groups User1 to User9 are defined.
'Hello' is just to represent a %{} result.
1) 'set statusline=:\ %3*Hello%2*:' works
2) 'set statusline=:%(\ %3*Hello%2*%):' works
3) 'set statusline=:\ %3*Hello%0*:' works
4) 'set statusline=:%(\ %3*Hello%0*%):' does not work

A workaround is to set a UserN group same as StatusLine and use %N* instead of
%0*.

Thanks,
Samson
Reply all
Reply to author
Forward
0 new messages