summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJunegunn Choi <junegunn.c@gmail.com>2022-12-20 23:24:24 +0900
committerJunegunn Choi <junegunn.c@gmail.com>2022-12-21 01:35:08 +0900
commita7a771b92b9e802f71f807b87526f43707020ef8 (patch)
treee177baf8ee47ae844d040adca683ada68adf4124 /src
parentdef011c0291741b0ab3566a01d939374712719c8 (diff)
downloadfzf-a7a771b92b9e802f71f807b87526f43707020ef8.tar.gz
Break out of jump mode when any action is submitted to the server
Diffstat (limited to 'src')
-rw-r--r--src/terminal.go7
1 files changed, 6 insertions, 1 deletions
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()]
}