Stop processing more actions after a terminal action (accept, abort, etc.)
Some checks are pending
CodeQL / Analyze (go) (push) Waiting to run
Test fzf on Linux / build (push) Waiting to run
Test fzf on macOS / build (push) Waiting to run

This commit is contained in:
Junegunn Choi
2025-02-02 16:27:39 +09:00
parent 7d0ea599c4
commit 65d74387e7
2 changed files with 9 additions and 0 deletions

View File

@@ -4831,6 +4831,10 @@ func (t *Terminal) Loop() error {
if !doAction(action) {
return false
}
// A terminal action performed. We should stop processing more.
if !looping {
break
}
}
if onFocus, prs := t.keymap[tui.Focus.AsEvent()]; prs && iter < maxFocusEvents {