diff options
author | romkatv <roman.perepelitsa@gmail.com> | 2020-01-11 21:24:51 +0300 |
---|---|---|
committer | romkatv <roman.perepelitsa@gmail.com> | 2020-01-11 21:24:51 +0300 |
commit | 8380cee319c82919e1b25452f4b875f49596e2ac (patch) | |
tree | 3248ca995b1066f8eb8bad8c911e500f3df2930f /internal/p10k.zsh | |
parent | db9913984d3e7198b9e24ae92e48bdc241a9cb32 (diff) |
run widget hooks only from PS1
Diffstat (limited to 'internal/p10k.zsh')
-rw-r--r-- | internal/p10k.zsh | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/internal/p10k.zsh b/internal/p10k.zsh index 70eaf8e2..969fd241 100644 --- a/internal/p10k.zsh +++ b/internal/p10k.zsh @@ -5543,7 +5543,6 @@ function _p9k_on_widget_zle-line-init() { } function _p9k_on_widget_zle-line-finish() { - [[ -z $1 && $CONTEXT != start ]] && _p9k__must_restore_prompt=0 (( $+_p9k__line_finished )) && return _p9k__line_finished= @@ -5601,7 +5600,7 @@ function _p9k_widget_hook() { function _p9k_widget() { (( ! ${+widgets[._p9k_orig_$1]} )) || zle ._p9k_orig_$1 "${@:2}" local res=$? - (( ! __p9k_enabled )) || _p9k_widget_hook "$@" + (( ! __p9k_enabled )) || [[ $CONTEXT != start ]] || _p9k_widget_hook "$@" return res } |