mirror of
https://github.com/romkatv/powerlevel10k.git
synced 2024-12-22 15:21:56 +00:00
be more lenient towards awful hacks that zplugin users employ
This commit is contained in:
parent
8c695f9ad7
commit
15ff12279c
1 changed files with 7 additions and 2 deletions
|
@ -3325,7 +3325,12 @@ _p9k_precmd_impl() {
|
|||
|
||||
(( __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:-}"
|
||||
|
||||
if (( $+_p9k_real_zle_rprompt_indent )); then
|
||||
|
@ -4270,7 +4275,7 @@ _p9k_must_init() {
|
|||
[[ -o transient_rprompt ]] && param_sig+=t
|
||||
[[ $param_sig == $_p9k_param_sig ]] && return 1
|
||||
[[ -n $_p9k_param_sig ]] && _p9k_deinit
|
||||
_p9k_param_sig=$param_sig
|
||||
typeset -g _p9k_param_sig=$param_sig
|
||||
}
|
||||
|
||||
function _p9k_set_os() {
|
||||
|
|
Loading…
Reference in a new issue