diff --git a/src/async.zsh b/src/async.zsh index ee39332..eefdf4a 100644 --- a/src/async.zsh +++ b/src/async.zsh @@ -41,7 +41,7 @@ _zsh_autosuggest_async_request() { # Second arg will be passed in case of error _zsh_autosuggest_async_response() { # Read everything from the fd and give it as a suggestion - zle autosuggest-suggest -- "$(<&$1)" + zle autosuggest-suggest -- "$(cat <&$1)" # Remove the handler and close the fd zle -F "$1" diff --git a/zsh-autosuggestions.zsh b/zsh-autosuggestions.zsh index 41c659f..0190895 100644 --- a/zsh-autosuggestions.zsh +++ b/zsh-autosuggestions.zsh @@ -747,7 +747,7 @@ _zsh_autosuggest_async_request() { # Second arg will be passed in case of error _zsh_autosuggest_async_response() { # Read everything from the fd and give it as a suggestion - zle autosuggest-suggest -- "$(<&$1)" + zle autosuggest-suggest -- "$(cat <&$1)" # Remove the handler and close the fd zle -F "$1"