From 65d74387e7409c82340414e6f4faa0e6244583c8 Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Sun, 2 Feb 2025 16:27:39 +0900 Subject: Stop processing more actions after a terminal action (accept, abort, etc.) --- src/terminal.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src') 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 { -- cgit v1.2.3