From afc2f05e5e40fb44380e555a3db89ec19ecb424f Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Thu, 23 Jan 2025 09:31:51 +0900 Subject: Fix --info-command when focus event is bound Fix #4198 --- src/terminal.go | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src') diff --git a/src/terminal.go b/src/terminal.go index aa523434..233ec8fc 100644 --- a/src/terminal.go +++ b/src/terminal.go @@ -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 } -- cgit v1.2.3