Skip to content

Commit 447aa1a

Browse files
authored
Fix a couple bugs introduced by last commit
Fix a couple bugs introduced by last commit
1 parent 70b2b2b commit 447aa1a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

themes/powerline-multiline/powerline-multiline.base.bash

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ function __powerline_prompt_command() {
7575

7676
## left prompt ##
7777
# shellcheck disable=SC2068 # intended behavior
78-
for segment in ${POWERLINE_PROMPT[@]-"user_info" "scm" "python_venv" "ruby" "node" "cwd"}; do
78+
for segment in ${POWERLINE_LEFT_PROMPT[@]-"user_info" "scm" "python_venv" "ruby" "node" "cwd"}; do
7979
info="$("__powerline_${segment}_prompt")"
8080
if [[ -n "${info}" ]]; then
8181
__powerline_left_segment "${info}"
@@ -90,7 +90,7 @@ function __powerline_prompt_command() {
9090
# but when part of the prompt exists within that segment, we instead match the foreground color.
9191
prompt_color="$(set_color "${LAST_SEGMENT_COLOR?}" -)"
9292
if [[ -n "${LEFT_PROMPT:-}" && -n "${POWERLINE_LEFT_LAST_SEGMENT_END_CHAR:-}" ]]; then
93-
LEFT_PROMPT+="$(set_color - "${LAST_SEGMENT_COLOR?}")${POWERLINE_LEFT_LAST_SEGMENT_END_CHAR}"
93+
LEFT_PROMPT+="$(set_color "${LAST_SEGMENT_COLOR?}" -)${POWERLINE_LEFT_LAST_SEGMENT_END_CHAR}"
9494
prompt_color="${normal?}"
9595
fi
9696

0 commit comments

Comments
 (0)