diff options
author | Junegunn Choi <junegunn.c@gmail.com> | 2024-06-17 17:54:04 +0900 |
---|---|---|
committer | Junegunn Choi <junegunn.c@gmail.com> | 2024-06-17 17:54:52 +0900 |
commit | 59943cbb48348fd7acb0ad2295809906868ca42e (patch) | |
tree | 9aa3681ec9b3cbacc732604f9059959ef3bc92ae | |
parent | 02634d404ded8ecb03468e2ad92b59691bf733f6 (diff) |
Fire 'result' even when input stream is not complete
Related: #3866
-rw-r--r-- | CHANGELOG.md | 1 | ||||
-rw-r--r-- | src/terminal.go | 6 |
2 files changed, 4 insertions, 3 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md index d7ee2748..365911fa 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -19,6 +19,7 @@ CHANGELOG - Fixed mouse support on Windows - zsh 5.0 compatibility (thanks to @LangLangBart) - Fixed `--walker-skip` to also skip symlinks to directories +- Fixed `result` event not fired when input stream is not complete 0.53.0 ------ diff --git a/src/terminal.go b/src/terminal.go index c519c927..20faeb21 100644 --- a/src/terminal.go +++ b/src/terminal.go @@ -1253,9 +1253,9 @@ func (t *Terminal) UpdateList(merger *Merger) { t.eventChan <- one } } - if t.hasResultActions { - t.eventChan <- tui.Result.AsEvent() - } + } + if t.hasResultActions { + t.eventChan <- tui.Result.AsEvent() } t.mutex.Unlock() t.reqBox.Set(reqInfo, nil) |