Wrap suggestion fetch command in parens to actually run in background
This commit is contained in:
@@ -22,7 +22,7 @@ _zsh_autosuggest_async_suggestion_server() {
|
|||||||
kill -KILL %1 &>/dev/null
|
kill -KILL %1 &>/dev/null
|
||||||
|
|
||||||
# Run suggestion search in the background
|
# Run suggestion search in the background
|
||||||
echo -n -E "$($strategy "$prefix")"$'\0' &
|
(echo -n -E "$($strategy "$prefix")"$'\0') &
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -506,7 +506,7 @@ _zsh_autosuggest_async_suggestion_server() {
|
|||||||
kill -KILL %1 &>/dev/null
|
kill -KILL %1 &>/dev/null
|
||||||
|
|
||||||
# Run suggestion search in the background
|
# Run suggestion search in the background
|
||||||
echo -n -E "$($strategy "$prefix")"$'\0' &
|
(echo -n -E "$($strategy "$prefix")"$'\0') &
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user