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 }