diff options
| author | Junegunn Choi <junegunn.c@gmail.com> | 2025-02-02 16:27:39 +0900 |
|---|---|---|
| committer | Junegunn Choi <junegunn.c@gmail.com> | 2025-02-02 16:28:32 +0900 |
| commit | 65d74387e7409c82340414e6f4faa0e6244583c8 (patch) | |
| tree | b3bf2da8b8e6bb0e4ee2a354b7dcd80ac63b4296 /src | |
| parent | 7d0ea599c4caeb12f7b2e98fb82d3ec50d184c88 (diff) | |
| download | fzf-65d74387e7409c82340414e6f4faa0e6244583c8.tar.gz | |
Stop processing more actions after a terminal action (accept, abort, etc.)
Diffstat (limited to 'src')
| -rw-r--r-- | src/terminal.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/terminal.go b/src/terminal.go index 820cc606..d91bff48 100644 --- a/src/terminal.go +++ b/src/terminal.go @@ -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 { |
