diff --git a/src/async.zsh b/src/async.zsh index 218eb26..9a02280 100644 --- a/src/async.zsh +++ b/src/async.zsh @@ -73,4 +73,5 @@ _zsh_autosuggest_async_response() { # Always remove the handler zle -F "$1" + _ZSH_AUTOSUGGEST_ASYNC_FD= } diff --git a/zsh-autosuggestions.zsh b/zsh-autosuggestions.zsh index b19cac7..98d1ec2 100644 --- a/zsh-autosuggestions.zsh +++ b/zsh-autosuggestions.zsh @@ -828,6 +828,7 @@ _zsh_autosuggest_async_response() { # Always remove the handler zle -F "$1" + _ZSH_AUTOSUGGEST_ASYNC_FD= } #--------------------------------------------------------------------#