Skip to content

Commit

Permalink
Account for function being invoked asynchronously
Browse files Browse the repository at this point in the history
  • Loading branch information
carhartl committed Feb 9, 2020
1 parent c2d72a8 commit 5397f7b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pure.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -271,8 +271,7 @@ prompt_pure_async_vcs_info() {
# and stash information via misc (%m).
zstyle ':vcs_info:git*' formats '%b' '%R' '%a' '%m'
zstyle ':vcs_info:git*' actionformats '%b' '%R' '%a' '%m'
zstyle -t ":prompt:pure:git:stash" show
if [[ $? == 0 ]]; then
if [[ $1 == 0 ]]; then
zstyle ':vcs_info:git*+set-message:*' hooks git-stash
fi

Expand Down Expand Up @@ -381,7 +380,8 @@ prompt_pure_async_tasks() {
fi
unset MATCH MBEGIN MEND

async_job "prompt_pure" prompt_pure_async_vcs_info
zstyle -t ":prompt:pure:git:stash" show
async_job "prompt_pure" prompt_pure_async_vcs_info $?

# Only perform tasks inside a Git working tree.
[[ -n $prompt_pure_vcs_info[top] ]] || return
Expand Down

0 comments on commit 5397f7b

Please sign in to comment.