Skip to content

Commit 7e4dbb5

Browse files
committed
Prevent start:track-current from being disabled
# track-current state can be immediately disabled fzf --sync --bind 'start:track-current'
1 parent 923c3a8 commit 7e4dbb5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/terminal.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4638,7 +4638,7 @@ func (t *Terminal) Loop() error {
46384638
currentIndex := t.currentIndex()
46394639
focusChanged := focusedIndex != currentIndex
46404640
info := false
4641-
if focusChanged && t.track == trackCurrent {
4641+
if focusChanged && focusedIndex >= 0 && t.track == trackCurrent {
46424642
t.track = trackDisabled
46434643
info = true
46444644
}

0 commit comments

Comments
 (0)