Fix soft separator issue with vim divider segments

This commit is contained in:
Kim Silkebækken 2012-11-08 12:51:15 +01:00
parent 99ded1d0c6
commit ffbdcc0f75

View File

@ -204,6 +204,9 @@ class Segment:
if segment.next.bg == segment.bg:
if segment.next.content and segment.separate:
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']
# Don't draw a hard separator if the next segment is on
# the opposite side, it screws up the coloring
@ -218,6 +221,9 @@ class Segment:
if segment.prev.bg == segment.bg:
if segment.prev.content and segment.separate:
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']
else:
pad_pre = True