diff options
author | romkatv <roman.perepelitsa@gmail.com> | 2020-02-16 18:20:46 +0300 |
---|---|---|
committer | romkatv <roman.perepelitsa@gmail.com> | 2020-02-16 18:20:46 +0300 |
commit | a6363401bb31d15dba31fbde867956d8b2edc107 (patch) | |
tree | 73d093d526488f66b2164ecfa8d959aa8a8cbd0f /internal | |
parent | ac39345713c09f56723a8c2270815a5813d93ee0 (diff) |
call _p9k_on_expand and subsequenty p10k-on-pre-prompt on every precmd, even when called from zle
Diffstat (limited to 'internal')
-rw-r--r-- | internal/p10k.zsh | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/internal/p10k.zsh b/internal/p10k.zsh index b51eea47..4c33dad9 100644 --- a/internal/p10k.zsh +++ b/internal/p10k.zsh @@ -5810,9 +5810,6 @@ _p9k_precmd_impl() { if zle; then __p9k_new_status=0 __p9k_new_pipestatus=(0) - _p9k__expanded=1 - else - _p9k__expanded=0 _p9k__must_restore_prompt=0 fi @@ -5879,6 +5876,8 @@ _p9k_precmd_impl() { _p9k_worker_invoke ${f_compute%% *} ${(e)f_compute} done + _p9k__expanded=0 + _p9k__refresh_reason=precmd _p9k_set_prompt _p9k__refresh_reason='' |