aboutsummaryrefslogtreecommitdiff
path: root/internal/p10k.zsh
diff options
context:
space:
mode:
authorromkatv <roman.perepelitsa@gmail.com>2020-01-13 10:51:07 +0300
committerromkatv <roman.perepelitsa@gmail.com>2020-01-13 10:51:07 +0300
commit32c3ad75cc564b484ab81af3f00f4cbcee614148 (patch)
tree03e745be8ee40025c9c6a00b1379d465578994b2 /internal/p10k.zsh
parent35d2432326505838c36b968e53dd67de85175788 (diff)
parent2b307eefd8e2552d0fba26569fafaaf21f7ecdd0 (diff)
Merge branch 'master' into reactive
Diffstat (limited to 'internal/p10k.zsh')
-rw-r--r--internal/p10k.zsh13
1 files changed, 8 insertions, 5 deletions
diff --git a/internal/p10k.zsh b/internal/p10k.zsh
index c4072d7a..68f78262 100644
--- a/internal/p10k.zsh
+++ b/internal/p10k.zsh
@@ -4517,13 +4517,16 @@ function _p9k_on_expand() {
P9K_TTY=old
if ! zle; then
- [[ $_p9k__display_v[2] == print ]] && print -rn -- $_p9k_t[_p9k_empty_line_idx]
+ if [[ $_p9k__display_v[2] == print && -n $_p9k_t[_p9k_empty_line_idx] ]]; then
+ print -rnP -- '%b%k%f%E'$_p9k_t[_p9k_empty_line_idx]
+ fi
if [[ $_p9k__display_v[4] == print ]]; then
- local ruler=$_p9k_t[_p9k_ruler_idx]
() {
+ local ruler=$_p9k_t[_p9k_ruler_idx]
+ local -i _p9k_clm=COLUMNS _p9k_ind=${ZLE_RPROMPT_INDENT:-1}
(( __p9k_ksh_arrays )) && setopt ksh_arrays
(( __p9k_sh_glob )) && setopt sh_glob
- print -rnP -- $ruler
+ print -rnP -- '%b%k%f%E'$ruler
}
fi
fi
@@ -5834,8 +5837,8 @@ _p9k_build_gap_post() {
local char=${_p9k_ret:- }
_p9k_prompt_length $char
if (( _p9k_ret != 1 || $#char != 1 )); then
- print -rP -- "%F{red}WARNING!%f %BMULTILINE_${(U)kind}_PROMPT_GAP_CHAR%b is not one character long. Will use ' '."
- print -rP -- "Either change the value of %BPOWERLEVEL9K_MULTILINE_${(U)kind}_PROMPT_GAP_CHAR%b or remove it."
+ >&2 print -rP -- "%F{red}WARNING!%f %BMULTILINE_${(U)kind}_PROMPT_GAP_CHAR%b is not one character long. Will use ' '."
+ >&2 print -rP -- "Either change the value of %BPOWERLEVEL9K_MULTILINE_${(U)kind}_PROMPT_GAP_CHAR%b or remove it."
char=' '
fi
local style