mirror of
https://github.com/zsh-users/zsh-autosuggestions.git
synced 2025-01-30 09:47:12 +08:00
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:
parent
fcca87555f
commit
56f10c3b5d
@ -73,4 +73,5 @@ _zsh_autosuggest_async_response() {
|
|||||||
|
|
||||||
# Always remove the handler
|
# Always remove the handler
|
||||||
zle -F "$1"
|
zle -F "$1"
|
||||||
|
_ZSH_AUTOSUGGEST_ASYNC_FD=
|
||||||
}
|
}
|
||||||
|
@ -828,6 +828,7 @@ _zsh_autosuggest_async_response() {
|
|||||||
|
|
||||||
# Always remove the handler
|
# Always remove the handler
|
||||||
zle -F "$1"
|
zle -F "$1"
|
||||||
|
_ZSH_AUTOSUGGEST_ASYNC_FD=
|
||||||
}
|
}
|
||||||
|
|
||||||
#--------------------------------------------------------------------#
|
#--------------------------------------------------------------------#
|
||||||
|
Loading…
Reference in New Issue
Block a user