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

make right prompt hidable even on the last line

This commit is contained in:
romkatv 2019-10-25 13:34:37 +02:00
parent 5a75b1bfc9
commit a42b58a93a

View file

@ -3467,7 +3467,7 @@ function _p9k_set_prompt() {
((i != num_lines && $#right)) && _p9k__prompt+=$_p9k_line_gap_post[i] ((i != num_lines && $#right)) && _p9k__prompt+=$_p9k_line_gap_post[i]
fi fi
if (( i == num_lines )); then if (( i == num_lines )); then
[[ -n $right ]] && RPROMPT=$_p9k_prompt_prefix_right$right$_p9k_prompt_suffix_right [[ -n $right ]] && RPROMPT='${__p9k_x_right-'$_p9k_prompt_prefix_right$right$_p9k_prompt_suffix_right'}'
_p9k__prompt+=$_p9k_prompt_suffix_left _p9k__prompt+=$_p9k_prompt_suffix_left
[[ $1 == instant_ ]] || PROMPT+=$_p9k__prompt [[ $1 == instant_ ]] || PROMPT+=$_p9k__prompt
else else