aboutsummaryrefslogtreecommitdiff
path: root/internal
diff options
context:
space:
mode:
authorromkatv <roman.perepelitsa@gmail.com>2019-07-24 13:47:56 +0300
committerromkatv <roman.perepelitsa@gmail.com>2019-07-24 13:47:56 +0300
commit49768006dec874673711e5d7f0bea3d657b62e2f (patch)
tree6a16a2c36032694930deb9017cb924922f5b40a2 /internal
parentca8a5bdeaa85314915d49124a68592e096af41d1 (diff)
bug fixes
Diffstat (limited to 'internal')
-rwxr-xr-xinternal/p10k.zsh4
1 files changed, 3 insertions, 1 deletions
diff --git a/internal/p10k.zsh b/internal/p10k.zsh
index eca9090c..d325b37d 100755
--- a/internal/p10k.zsh
+++ b/internal/p10k.zsh
@@ -2869,6 +2869,8 @@ _p9k_init_params() {
_p9k_declare -a POWERLEVEL9K_RIGHT_PROMPT_ELEMENTS -- status root_indicator background_jobs history time
_p9k_declare -b POWERLEVEL9K_DISABLE_RPROMPT 0
_p9k_declare -b POWERLEVEL9K_PROMPT_ADD_NEWLINE 0
+ _p9k_declare -b POWERLEVEL9K_PROMPT_ON_NEWLINE 0
+ _p9k_declare -b POWERLEVEL9K_RPROMPT_ON_NEWLINE 0
_p9k_declare -b POWERLEVEL9K_SHOW_RULER 0
_p9k_declare -i POWERLEVEL9K_PROMPT_ADD_NEWLINE_COUNT 1
_p9k_declare -s POWERLEVEL9K_COLOR_SCHEME dark
@@ -3279,7 +3281,7 @@ _p9k_init_prompt() {
# If affects most terminals when RPROMPT is non-empty and ZLE_RPROMPT_INDENT is zero.
# We can work around it as long as RPROMPT ends with a space.
if [[ -n $_P9K_LINE_SEGMENTS_RIGHT[-1] && $_P9K_LINE_NEVER_EMPTY_RIGHT[-1] == 0 &&
- $ZLE_RPROMPT_INDENT == 0 && $POWERLEVEL9K_WHITESPACE_BETWEEN_RIGHT_SEGMENTS == ' ' &&
+ $ZLE_RPROMPT_INDENT == 0 && ${POWERLEVEL9K_WHITESPACE_BETWEEN_RIGHT_SEGMENTS:- } == ' ' &&
-z $(typeset -m 'POWERLEVEL9K_*(RIGHT_RIGHT_WHITESPACE|RIGHT_PROMPT_LAST_SEGMENT_END_SYMBOL)') ]] &&
! is-at-least 5.7.2; then
typeset -gi _P9K_EMULATE_ZERO_RPROMPT_INDENT=1