Merge pull request #1192 from madcarrot/master
Update powerline theme to avoid overlapping left and right promptpull/1199/head
commit
1b887b2916
|
|
@ -46,11 +46,13 @@ function __powerline_prompt_command {
|
||||||
|
|
||||||
## right prompt ##
|
## right prompt ##
|
||||||
if [[ -n "${POWERLINE_RIGHT_PROMPT}" ]]; then
|
if [[ -n "${POWERLINE_RIGHT_PROMPT}" ]]; then
|
||||||
LEFT_PROMPT+="${move_cursor_rightmost}"
|
# LEFT_PROMPT+="${move_cursor_rightmost}"
|
||||||
for segment in $POWERLINE_RIGHT_PROMPT; do
|
for segment in $POWERLINE_RIGHT_PROMPT; do
|
||||||
local info="$(__powerline_${segment}_prompt)"
|
local info="$(__powerline_${segment}_prompt)"
|
||||||
[[ -n "${info}" ]] && __powerline_right_segment "${info}"
|
[[ -n "${info}" ]] && __powerline_right_segment "${info}"
|
||||||
done
|
done
|
||||||
|
RIGHT_PAD=$(printf "%.s " $(seq 1 $RIGHT_PROMPT_LENGTH))
|
||||||
|
LEFT_PROMPT+="${RIGHT_PAD}${move_cursor_rightmost}"
|
||||||
LEFT_PROMPT+="\033[${RIGHT_PROMPT_LENGTH}D"
|
LEFT_PROMPT+="\033[${RIGHT_PROMPT_LENGTH}D"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue