m/fzf
1
0
mirror of https://github.com/junegunn/fzf.git synced 2025-11-14 14:23:47 -05:00

Fix --info-command when focus event is bound

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

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
}