Skip to content

Commit

Permalink
Ignore fcs chars in the default statusline
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
vimpostor committed Oct 13, 2023
1 parent 2889cbd commit bff2124
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion autoload/tpipeline/stl.vim
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ func tpipeline#stl#progress()
endfunc

func tpipeline#stl#line()
return tpipeline#stl#mode() . ' ' . tpipeline#stl#fn() . tpipeline#stl#attr() . tpipeline#stl#rec() . '%=' . tpipeline#stl#searchc() . tpipeline#stl#ft() . ' ' . tpipeline#stl#progress()
return tpipeline#stl#mode() . ' ' . tpipeline#stl#fn() . tpipeline#stl#attr() . tpipeline#stl#rec() . '%#Ignore#%=' . tpipeline#stl#searchc() . tpipeline#stl#ft() . ' ' . tpipeline#stl#progress()
endfunc

func tpipeline#stl#tabline()
Expand Down

0 comments on commit bff2124

Please sign in to comment.