From f1bb5601fe8b266a61e78c58cbe4e976bd6f83fd Mon Sep 17 00:00:00 2001 From: romkatv Date: Sat, 25 Jan 2020 12:51:46 +0100 Subject: [PATCH] process ready replies from worker synchornously in precmd --- internal/p10k.zsh | 2 ++ internal/worker.zsh | 2 ++ 2 files changed, 4 insertions(+) diff --git a/internal/p10k.zsh b/internal/p10k.zsh index 8f31231d..598f0d26 100644 --- a/internal/p10k.zsh +++ b/internal/p10k.zsh @@ -4931,6 +4931,8 @@ _p9k_precmd_impl() { if [[ $preexec_functions[-1] != _p9k_preexec2 && $preexec_functions[(I)_p9k_preexec2] != 0 ]]; then preexec_functions=(${(@)preexec_functions:#_p9k_preexec2} _p9k_preexec2) fi + + _p9k_worker_receive } _p9k_trapint() { diff --git a/internal/worker.zsh b/internal/worker.zsh index dad0bb74..99948c46 100644 --- a/internal/worker.zsh +++ b/internal/worker.zsh @@ -121,6 +121,8 @@ function _p9k_worker_receive() { emulate -L zsh setopt no_hist_expand extended_glob no_prompt_bang prompt_{percent,subst} no_aliases + [[ -z $_p9k__worker_resp_fd ]] && return + { (( $# <= 1 )) || return