File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed
Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff 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+ }
You can’t perform that action at this time.
0 commit comments