From a7a771b92b9e802f71f807b87526f43707020ef8 Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Tue, 20 Dec 2022 23:24:24 +0900 Subject: [PATCH] Break out of jump mode when any action is submitted to the server --- src/terminal.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/terminal.go b/src/terminal.go index 0d99637c..1ff40412 100644 --- a/src/terminal.go +++ b/src/terminal.go @@ -3070,7 +3070,12 @@ func (t *Terminal) Loop() { return true } - if t.jumping == jumpDisabled { + if t.jumping == jumpDisabled || len(actions) > 0 { + // Break out of jump mode if any action is submitted to the server + if t.jumping != jumpDisabled { + t.jumping = jumpDisabled + req(reqList) + } if len(actions) == 0 { actions = t.keymap[event.Comparable()] }