Fix bug so that the segment separator of left middle has the right color

In short: the current background color was the unfiltered color and is
used to print the next segment separator. If the user set a color like
"purple3" that would result in a white segment separator as Terminal
Emulators do not understand the color "purple3".
pull/22/head
Dominik Ritter 6 years ago
parent ebbdb3c1c0
commit bf9082bea9

@ -173,7 +173,7 @@ left_prompt_segment() {
[[ -n "$5" ]] && echo -n "${fg}${5}" [[ -n "$5" ]] && echo -n "${fg}${5}"
echo -n "${POWERLEVEL9K_WHITESPACE_BETWEEN_LEFT_SEGMENTS}" echo -n "${POWERLEVEL9K_WHITESPACE_BETWEEN_LEFT_SEGMENTS}"
CURRENT_BG=$3 CURRENT_BG="$(getColorCode ${3})"
last_left_element_index=$current_index last_left_element_index=$current_index
} }

Loading…
Cancel
Save