Do not rely on implicit NULLCMD=cat

This commit is contained in:
Martin Väth authored and Eric Freese committed 2018-07-02 12:21:49 -06:00
1 parent 07b37fd9ce
commit 8ae0283c90
2 files changed
+2 -2

No files matched your search

+1 -1
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"
+1 -1
View File
@@ -747,7 +747,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"