aboutsummaryrefslogtreecommitdiff
path: root/powerlevel9k.zsh-theme
diff options
context:
space:
mode:
authorromkatv <roman.perepelitsa@gmail.com>2019-05-28 21:44:23 +0300
committerromkatv <roman.perepelitsa@gmail.com>2019-05-28 21:44:23 +0300
commitb000ce4ad01dbeeafaa766ad046386449362e290 (patch)
treea0f298f0a18be3474ece6b85f628b6ef1023d590 /powerlevel9k.zsh-theme
parent4e3ec4850cbadd7b744cb4110b4f17b3ab717949 (diff)
avoid using %(l.t.f) after writing to the edge of the screen
Diffstat (limited to 'powerlevel9k.zsh-theme')
-rwxr-xr-xpowerlevel9k.zsh-theme4
1 files changed, 2 insertions, 2 deletions
diff --git a/powerlevel9k.zsh-theme b/powerlevel9k.zsh-theme
index 9d350fea..03102970 100755
--- a/powerlevel9k.zsh-theme
+++ b/powerlevel9k.zsh-theme
@@ -2429,7 +2429,7 @@ _p9k_init() {
_P9K_ALIGNED_RPROMPT+='${_P9K_X::=${_P9K_XY%;*}}'
_P9K_ALIGNED_RPROMPT+='${_P9K_Y::=${_P9K_XY#*;}}'
done
- _P9K_ALIGNED_RPROMPT+='${_P9K_X::=$((_P9K_X+1+${${ZLE_RPROMPT_INDENT:-1}/#-*/0}))}'
+ _P9K_ALIGNED_RPROMPT+='${_P9K_X::=$((_P9K_X+2+${${ZLE_RPROMPT_INDENT:-1}/#-*/0}))}'
_P9K_ALIGNED_RPROMPT+='${_P9K_Y::=$((_P9K_X+31))}}+}'
repeat 32; do
@@ -2438,7 +2438,7 @@ _p9k_init() {
repeat 32; do
_P9K_ALIGNED_RPROMPT+='%-$_P9K_X(l. .)'
done
- _P9K_ALIGNED_RPROMPT+='$_P9K_RPROMPT'
+ _P9K_ALIGNED_RPROMPT+=' $_P9K_RPROMPT'
if [[ $POWERLEVEL9K_PROMPT_ADD_NEWLINE == true ]]; then
repeat ${POWERLEVEL9K_PROMPT_ADD_NEWLINE_COUNT:-1} _P9K_LEFT_PREFIX+=$'\n'