avoid using %(l.t.f) after writing to the edge of the screen
parent
4e3ec4850c
commit
b000ce4ad0
|
@ -2429,7 +2429,7 @@ _p9k_init() {
|
||||||
_P9K_ALIGNED_RPROMPT+='${_P9K_X::=${_P9K_XY%;*}}'
|
_P9K_ALIGNED_RPROMPT+='${_P9K_X::=${_P9K_XY%;*}}'
|
||||||
_P9K_ALIGNED_RPROMPT+='${_P9K_Y::=${_P9K_XY#*;}}'
|
_P9K_ALIGNED_RPROMPT+='${_P9K_Y::=${_P9K_XY#*;}}'
|
||||||
done
|
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))}}+}'
|
_P9K_ALIGNED_RPROMPT+='${_P9K_Y::=$((_P9K_X+31))}}+}'
|
||||||
|
|
||||||
repeat 32; do
|
repeat 32; do
|
||||||
|
@ -2438,7 +2438,7 @@ _p9k_init() {
|
||||||
repeat 32; do
|
repeat 32; do
|
||||||
_P9K_ALIGNED_RPROMPT+='%-$_P9K_X(l. .)'
|
_P9K_ALIGNED_RPROMPT+='%-$_P9K_X(l. .)'
|
||||||
done
|
done
|
||||||
_P9K_ALIGNED_RPROMPT+='$_P9K_RPROMPT'
|
_P9K_ALIGNED_RPROMPT+=' $_P9K_RPROMPT'
|
||||||
|
|
||||||
if [[ $POWERLEVEL9K_PROMPT_ADD_NEWLINE == true ]]; then
|
if [[ $POWERLEVEL9K_PROMPT_ADD_NEWLINE == true ]]; then
|
||||||
repeat ${POWERLEVEL9K_PROMPT_ADD_NEWLINE_COUNT:-1} _P9K_LEFT_PREFIX+=$'\n'
|
repeat ${POWERLEVEL9K_PROMPT_ADD_NEWLINE_COUNT:-1} _P9K_LEFT_PREFIX+=$'\n'
|
||||||
|
|
Loading…
Reference in New Issue