Always reset file descriptor after consuming it

This prevents the request cancelling logic from closing an unrelated fd that happens to reuse the same number.
This commit is contained in:
Robert Cegliński 2021-09-17 00:07:03 +02:00
parent fcca87555f
commit 56f10c3b5d
2 changed files with 2 additions and 0 deletions

View File

@ -73,4 +73,5 @@ _zsh_autosuggest_async_response() {
# Always remove the handler
zle -F "$1"
_ZSH_AUTOSUGGEST_ASYNC_FD=
}

View File

@ -828,6 +828,7 @@ _zsh_autosuggest_async_response() {
# Always remove the handler
zle -F "$1"
_ZSH_AUTOSUGGEST_ASYNC_FD=
}
#--------------------------------------------------------------------#