Fix --info-command when focus event is bound

Fix #4198
This commit is contained in:
Junegunn Choi committed 2025-01-23 09:31:51 +09:00
1 parent 06547d0cbe
commit afc2f05e5e
2 files changed
+10

No files matched your search

+3
View File
@@ -4678,6 +4678,9 @@ func (t *Terminal) Loop() error {
if onFocus, prs := t.keymap[tui.Focus.AsEvent()]; prs && iter < maxFocusEvents {
if newIndex := t.currentIndex(); newIndex != currentIndex {
t.lastFocus = newIndex
if t.infoCommand != "" {
req(reqInfo)
}
actions = onFocus
continue
}