1
0
Fork 0
mirror of https://github.com/romkatv/powerlevel10k.git synced 2024-11-11 00:00:06 +00:00

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".
This commit is contained in:
Dominik Ritter 2018-08-07 21:25:06 +02:00
parent ebbdb3c1c0
commit bf9082bea9

View file

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