From 59943cbb48348fd7acb0ad2295809906868ca42e Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Mon, 17 Jun 2024 17:54:04 +0900 Subject: [PATCH] Fire 'result' even when input stream is not complete Related: #3866 --- CHANGELOG.md | 1 + 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)