cleanup: More precisely check number of args instead of second arg value

This commit is contained in:
Eric Freese committed 2023-08-25 16:27:29 -06:00
1 parent 35ed23efe8
commit 2b730c9634
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -62,7 +62,7 @@ _zsh_autosuggest_async_response() {
local suggestion
if [[ -z "$2" || "$2" == "hup" ]]; then
if [[ $# == 1 || "$2" == "hup" ]]; then
# Read everything from the fd and give it as a suggestion
IFS='' read -rd '' -u $1 suggestion
zle autosuggest-suggest -- "$suggestion"
+1 -1
View File
@@ -817,7 +817,7 @@ _zsh_autosuggest_async_response() {
local suggestion
if [[ -z "$2" || "$2" == "hup" ]]; then
if [[ $# == 1 || "$2" == "hup" ]]; then
# Read everything from the fd and give it as a suggestion
IFS='' read -rd '' -u $1 suggestion
zle autosuggest-suggest -- "$suggestion"