mirror of
https://github.com/romkatv/powerlevel10k.git
synced 2024-11-11 00:00:06 +00:00
make right prompt hidable even on the last line
This commit is contained in:
parent
5a75b1bfc9
commit
a42b58a93a
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue