Fire 'result' even when input stream is not complete

Related: #3866
This commit is contained in:
Junegunn Choi committed 2024-06-17 17:54:52 +09:00
1 parent 02634d404d
commit 59943cbb48
2 files changed
+4 -3

No files matched your search

+1
View File
@@ -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
------
+3 -3
View File
@@ -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)