summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJunegunn Choi <junegunn.c@gmail.com>2025-01-23 09:31:51 +0900
committerJunegunn Choi <junegunn.c@gmail.com>2025-01-23 09:31:51 +0900
commitafc2f05e5e40fb44380e555a3db89ec19ecb424f (patch)
tree5640354acbf9fa3f22242b4df0d635d11d6b1916 /src
parent06547d0cbe82f516904a54579a73fa01b1bb64bf (diff)
downloadfzf-afc2f05e5e40fb44380e555a3db89ec19ecb424f.tar.gz
Fix --info-command when focus event is bound
Fix #4198
Diffstat (limited to 'src')
-rw-r--r--src/terminal.go3
1 files changed, 3 insertions, 0 deletions
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
}