Skip to content

Commit bff2124

Browse files
committed
Ignore fcs chars in the default statusline
Otherwise we get the weird "-" fillchars outside of tmux in the middle of our statusline. We really only want them to appear when they are part of the border between two windows. Unfortunately vim does not allow to configure the fillchars for the real statusline and for border lines separately (most people also don't have border lines, because they don't have something like laststatus=0 plus fcs set, so for them the real statusline renders inbetween windows). To fix this, we use the Ignore highlight group to color the middle section, which just happens to make the fillchars transparent. This statusline is not evaluated for window borders, so luckily they still appear there with the original highlight group.
1 parent 2889cbd commit bff2124

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

autoload/tpipeline/stl.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ func tpipeline#stl#progress()
5555
endfunc
5656

5757
func tpipeline#stl#line()
58-
return tpipeline#stl#mode() . ' ' . tpipeline#stl#fn() . tpipeline#stl#attr() . tpipeline#stl#rec() . '%=' . tpipeline#stl#searchc() . tpipeline#stl#ft() . ' ' . tpipeline#stl#progress()
58+
return tpipeline#stl#mode() . ' ' . tpipeline#stl#fn() . tpipeline#stl#attr() . tpipeline#stl#rec() . '%#Ignore#%=' . tpipeline#stl#searchc() . tpipeline#stl#ft() . ' ' . tpipeline#stl#progress()
5959
endfunc
6060

6161
func tpipeline#stl#tabline()

0 commit comments

Comments
 (0)