mirror of
https://github.com/romkatv/powerlevel10k.git
synced 2024-11-25 13:30:07 +00:00
call _p9k_on_expand and subsequenty p10k-on-pre-prompt on every precmd, even when called from zle
This commit is contained in:
parent
ac39345713
commit
a6363401bb
1 changed files with 2 additions and 3 deletions
|
@ -5810,9 +5810,6 @@ _p9k_precmd_impl() {
|
||||||
if zle; then
|
if zle; then
|
||||||
__p9k_new_status=0
|
__p9k_new_status=0
|
||||||
__p9k_new_pipestatus=(0)
|
__p9k_new_pipestatus=(0)
|
||||||
_p9k__expanded=1
|
|
||||||
else
|
|
||||||
_p9k__expanded=0
|
|
||||||
_p9k__must_restore_prompt=0
|
_p9k__must_restore_prompt=0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -5879,6 +5876,8 @@ _p9k_precmd_impl() {
|
||||||
_p9k_worker_invoke ${f_compute%% *} ${(e)f_compute}
|
_p9k_worker_invoke ${f_compute%% *} ${(e)f_compute}
|
||||||
done
|
done
|
||||||
|
|
||||||
|
_p9k__expanded=0
|
||||||
|
|
||||||
_p9k__refresh_reason=precmd
|
_p9k__refresh_reason=precmd
|
||||||
_p9k_set_prompt
|
_p9k_set_prompt
|
||||||
_p9k__refresh_reason=''
|
_p9k__refresh_reason=''
|
||||||
|
|
Loading…
Reference in a new issue