Skip to content

Commit a593f4d

Browse files
authored
Merge pull request #630 from codicodi/reset-fd
Always reset file descriptor after consuming it
2 parents 2c9e57f + 56f10c3 commit a593f4d

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/async.zsh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,4 +73,5 @@ _zsh_autosuggest_async_response() {
7373

7474
# Always remove the handler
7575
zle -F "$1"
76+
_ZSH_AUTOSUGGEST_ASYNC_FD=
7677
}

zsh-autosuggestions.zsh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -830,6 +830,7 @@ _zsh_autosuggest_async_response() {
830830

831831
# Always remove the handler
832832
zle -F "$1"
833+
_ZSH_AUTOSUGGEST_ASYNC_FD=
833834
}
834835

835836
#--------------------------------------------------------------------#

0 commit comments

Comments
 (0)