From 8bd7e5807cca618e86c4139ecbf06bcadd971c9a Mon Sep 17 00:00:00 2001 From: Zachary Yedidia Date: Fri, 29 May 2020 14:38:29 -0400 Subject: [PATCH] Always use current pane for keybinding actions Fixes #1677 --- internal/action/bufpane.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/internal/action/bufpane.go b/internal/action/bufpane.go index 51d4ebd1..5d26907f 100644 --- a/internal/action/bufpane.go +++ b/internal/action/bufpane.go @@ -124,6 +124,8 @@ func BufMapKey(k Event, action string) { break } } + // if the action changed the current pane, update the reference + h = MainTab().CurPane() } return true }