This commit is contained in:
Martin Väth 2018-07-02 17:30:14 +00:00 committed by GitHub
commit 0fd9de7ba0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -41,7 +41,7 @@ _zsh_autosuggest_async_request() {
# Second arg will be passed in case of error # Second arg will be passed in case of error
_zsh_autosuggest_async_response() { _zsh_autosuggest_async_response() {
# Read everything from the fd and give it as a suggestion # 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 # Remove the handler and close the fd
zle -F "$1" zle -F "$1"

View File

@ -723,7 +723,7 @@ _zsh_autosuggest_async_request() {
# Second arg will be passed in case of error # Second arg will be passed in case of error
_zsh_autosuggest_async_response() { _zsh_autosuggest_async_response() {
# Read everything from the fd and give it as a suggestion # 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 # Remove the handler and close the fd
zle -F "$1" zle -F "$1"