1
0
mirror of https://github.com/romkatv/powerlevel10k.git synced 2024-12-12 19:18:28 +02:00

be more lenient towards awful hacks that zplugin users employ

This commit is contained in:
romkatv 2019-09-20 12:09:47 +02:00
parent 8c695f9ad7
commit 15ff12279c

View File

@ -3325,7 +3325,12 @@ _p9k_precmd_impl() {
(( __p9k_enabled )) || return (( __p9k_enabled )) || return
if ! zle; then if ! zle || [[ -z $_p9k_param_sig ]]; then
if zle; then
__p9k_new_status=0
__p9k_new_pipestatus=(0)
fi
print -rn "${_p9k_prompt_newline:-}" print -rn "${_p9k_prompt_newline:-}"
if (( $+_p9k_real_zle_rprompt_indent )); then if (( $+_p9k_real_zle_rprompt_indent )); then
@ -4270,7 +4275,7 @@ _p9k_must_init() {
[[ -o transient_rprompt ]] && param_sig+=t [[ -o transient_rprompt ]] && param_sig+=t
[[ $param_sig == $_p9k_param_sig ]] && return 1 [[ $param_sig == $_p9k_param_sig ]] && return 1
[[ -n $_p9k_param_sig ]] && _p9k_deinit [[ -n $_p9k_param_sig ]] && _p9k_deinit
_p9k_param_sig=$param_sig typeset -g _p9k_param_sig=$param_sig
} }
function _p9k_set_os() { function _p9k_set_os() {