Skip to content

Commit

Permalink
Merge pull request #630 from codicodi/reset-fd
Browse files Browse the repository at this point in the history
Always reset file descriptor after consuming it
  • Loading branch information
ericfreese committed Sep 7, 2023
2 parents 2c9e57f + 56f10c3 commit a593f4d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/async.zsh
Expand Up @@ -73,4 +73,5 @@ _zsh_autosuggest_async_response() {

# Always remove the handler
zle -F "$1"
_ZSH_AUTOSUGGEST_ASYNC_FD=
}
1 change: 1 addition & 0 deletions zsh-autosuggestions.zsh
Expand Up @@ -830,6 +830,7 @@ _zsh_autosuggest_async_response() {

# Always remove the handler
zle -F "$1"
_ZSH_AUTOSUGGEST_ASYNC_FD=
}

#--------------------------------------------------------------------#
Expand Down

0 comments on commit a593f4d

Please sign in to comment.