aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorromkatv <roman.perepelitsa@gmail.com>2019-10-25 14:34:37 +0300
committerromkatv <roman.perepelitsa@gmail.com>2019-10-25 14:34:37 +0300
commita42b58a93af1dd61ea1b641e89f2bbab59e83e58 (patch)
tree24d4ef70e83a87b30c514bf416ce43648122c24f
parent5a75b1bfc9889bea50466d12a517a416b02447fe (diff)
make right prompt hidable even on the last line
-rw-r--r--internal/p10k.zsh2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/p10k.zsh b/internal/p10k.zsh
index 171ca258..f0bbb5d0 100644
--- a/internal/p10k.zsh
+++ b/internal/p10k.zsh
@@ -3467,7 +3467,7 @@ function _p9k_set_prompt() {
((i != num_lines && $#right)) && _p9k__prompt+=$_p9k_line_gap_post[i]
fi
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
[[ $1 == instant_ ]] || PROMPT+=$_p9k__prompt
else