mirror of
https://github.com/powerline/powerline.git
synced 2025-07-27 15:54:30 +02:00
Fix soft separator issue with vim divider segments
This commit is contained in:
parent
99ded1d0c6
commit
ffbdcc0f75
@ -204,6 +204,9 @@ class Segment:
|
|||||||
if segment.next.bg == segment.bg:
|
if segment.next.bg == segment.bg:
|
||||||
if segment.next.content and segment.separate:
|
if segment.next.content and segment.separate:
|
||||||
output += segment.padding
|
output += segment.padding
|
||||||
|
if segment.next.side == segment.side:
|
||||||
|
# Only draw the soft separator if this segment is on the same side
|
||||||
|
# No need to draw the soft separator if there's e.g. a vim divider in the next segment
|
||||||
output += segment.separator['soft']
|
output += segment.separator['soft']
|
||||||
# Don't draw a hard separator if the next segment is on
|
# Don't draw a hard separator if the next segment is on
|
||||||
# the opposite side, it screws up the coloring
|
# the opposite side, it screws up the coloring
|
||||||
@ -218,6 +221,9 @@ class Segment:
|
|||||||
if segment.prev.bg == segment.bg:
|
if segment.prev.bg == segment.bg:
|
||||||
if segment.prev.content and segment.separate:
|
if segment.prev.content and segment.separate:
|
||||||
pad_pre = True
|
pad_pre = True
|
||||||
|
if segment.prev.side == segment.side:
|
||||||
|
# Only draw the soft separator if this segment is on the same side
|
||||||
|
# No need to draw the soft separator if there's e.g. a vim divider in the previous segment
|
||||||
output += segment.separator['soft']
|
output += segment.separator['soft']
|
||||||
else:
|
else:
|
||||||
pad_pre = True
|
pad_pre = True
|
||||||
|
Loading…
x
Reference in New Issue
Block a user