Skip to content

Commit dcc44cc

Browse files
committed
Re-add support for 'thin' separators
1 parent decc414 commit dcc44cc

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

lib/powerline.sh

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,11 @@ __process_colors() {
5454
powerline_segment[4]=${previous_background_color:-$TMUX_POWERLINE_DEFAULT_BACKGROUND_COLOR}
5555
fi
5656

57-
powerline_segment[5]=${powerline_segment[1]}
57+
if __segment_separator_is_thin; then
58+
powerline_segment[5]=${powerline_segment[2]}
59+
else
60+
powerline_segment[5]=${powerline_segment[1]}
61+
fi
5862

5963
local previous_background_color=${powerline_segment[1]}
6064

@@ -99,3 +103,8 @@ __print_right_segment() {
99103
__print_colored_content $separator $separator_background_color $separator_foreground_color
100104
__print_colored_content "$content" $content_background_color $content_foreground_color
101105
}
106+
107+
__segment_separator_is_thin() {
108+
[[ ${powerline_segment[3]} == $TMUX_POWERLINE_SEPARATOR_LEFT_THIN || \
109+
${powerline_segment[3]} == $TMUX_POWERLINE_SEPARATOR_RIGHT_THIN ]];
110+
}

0 commit comments

Comments
 (0)