mirror of
https://github.com/zsh-users/zsh-autosuggestions.git
synced 2024-11-18 09:51:06 +01:00
Merge pull request #630 from codicodi/reset-fd
Always reset file descriptor after consuming it
This commit is contained in:
commit
a593f4dfec
2 changed files with 2 additions and 0 deletions
|
@ -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=
|
||||||
}
|
}
|
||||||
|
|
|
@ -830,6 +830,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 a new issue