Fire 'result' even when input stream is not complete

Related: #3866
This commit is contained in:
Junegunn Choi 2024-06-17 17:54:04 +09:00
parent 02634d404d
commit 59943cbb48
No known key found for this signature in database
GPG Key ID: 254BC280FEF9C627
2 changed files with 4 additions and 3 deletions

View File

@ -19,6 +19,7 @@ CHANGELOG
- Fixed mouse support on Windows - Fixed mouse support on Windows
- zsh 5.0 compatibility (thanks to @LangLangBart) - zsh 5.0 compatibility (thanks to @LangLangBart)
- Fixed `--walker-skip` to also skip symlinks to directories - Fixed `--walker-skip` to also skip symlinks to directories
- Fixed `result` event not fired when input stream is not complete
0.53.0 0.53.0
------ ------

View File

@ -1253,9 +1253,9 @@ func (t *Terminal) UpdateList(merger *Merger) {
t.eventChan <- one t.eventChan <- one
} }
} }
if t.hasResultActions { }
t.eventChan <- tui.Result.AsEvent() if t.hasResultActions {
} t.eventChan <- tui.Result.AsEvent()
} }
t.mutex.Unlock() t.mutex.Unlock()
t.reqBox.Set(reqInfo, nil) t.reqBox.Set(reqInfo, nil)