From 21d9eda5dd0fdf74afeb9d452735e4a0c14b7a61 Mon Sep 17 00:00:00 2001 From: Eric Freese Date: Tue, 24 Jan 2017 23:59:38 -0700 Subject: [PATCH] Wrap suggestion fetch command in parens to actually run in background --- src/async.zsh | 2 +- zsh-autosuggestions.zsh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/async.zsh b/src/async.zsh index 1d2ae87..ddc07a5 100644 --- a/src/async.zsh +++ b/src/async.zsh @@ -22,7 +22,7 @@ _zsh_autosuggest_async_suggestion_server() { kill -KILL %1 &>/dev/null # Run suggestion search in the background - echo -n -E "$($strategy "$prefix")"$'\0' & + (echo -n -E "$($strategy "$prefix")"$'\0') & done } diff --git a/zsh-autosuggestions.zsh b/zsh-autosuggestions.zsh index b72f3e2..bcee1ee 100644 --- a/zsh-autosuggestions.zsh +++ b/zsh-autosuggestions.zsh @@ -506,7 +506,7 @@ _zsh_autosuggest_async_suggestion_server() { kill -KILL %1 &>/dev/null # Run suggestion search in the background - echo -n -E "$($strategy "$prefix")"$'\0' & + (echo -n -E "$($strategy "$prefix")"$'\0') & done }