diff options
author | zeertzjq <zeertzjq@outlook.com> | 2023-11-09 06:34:34 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-09 06:34:34 +0800 |
commit | f7b2ea59a633309aba1ca5286e33d789a45cb13f (patch) | |
tree | aa88186c94afd06a0b931f11ca5084a34dc03bef /runtime/lua/vim/_meta/options.lua | |
parent | 3128cff6b198daabfddeedd382c0b8707319504f (diff) | |
download | rneovim-f7b2ea59a633309aba1ca5286e33d789a45cb13f.tar.gz rneovim-f7b2ea59a633309aba1ca5286e33d789a45cb13f.tar.bz2 rneovim-f7b2ea59a633309aba1ca5286e33d789a45cb13f.zip |
vim-patch:9.0.2095: statusline may look different than expected (#25941)
Problem: statusline may look different than expected
Solution: do not check for highlighting of stl and stlnc characters
statusline fillchar may be different than expected
If the highlighting group for the statusline for the current window
|hl-StatusLine| or the non-current window |hl-StatusLineNC| are cleared
(or do not differ from each other), than Vim will use the hard-coded
fallback values '^' (for the non-current windows) or '=' (for the
current window). I believe this was done, to make sure the statusline
will always be visible and be distinguishable from the rest of the
window.
However, this may be unexpected, if a user explicitly defined those
fillchar characters just to notice that those values are then not used
by Vim.
So, let's assume users know what they are doing and just always return
the configured stl and stlnc values. And if they want the statusline to
be non-distinguishable from the rest of the window space, so be it. It
is their responsibility and Vim shall not know better what to use.
fixes: vim/vim#13366
closes: vim/vim#13488
https://github.com/vim/vim/commit/6a650bf696f1df3214b3d788947447c5bbf1a77d
Co-authored-by: Christian Brabandt <cb@256bit.org>
Diffstat (limited to 'runtime/lua/vim/_meta/options.lua')
-rw-r--r-- | runtime/lua/vim/_meta/options.lua | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/runtime/lua/vim/_meta/options.lua b/runtime/lua/vim/_meta/options.lua index a986cd752c..53f7166b3d 100644 --- a/runtime/lua/vim/_meta/options.lua +++ b/runtime/lua/vim/_meta/options.lua @@ -2217,10 +2217,8 @@ vim.bo.ft = vim.bo.filetype --- --- Example: --- ``` ---- :set fillchars=stl:^,stlnc:=,vert:│,fold:·,diff:- +--- :set fillchars=stl:\ ,stlnc:\ ,vert:│,fold:·,diff:- --- ``` ---- This is similar to the default, except that these characters will also ---- be used when there is highlighting. --- --- For the "stl", "stlnc", "foldopen", "foldclose" and "foldsep" items --- single-byte and multibyte characters are supported. But double-width |