]> git.lizzy.rs Git - micro.git/commitdiff
Always use current pane for keybinding actions
authorZachary Yedidia <zyedidia@gmail.com>
Fri, 29 May 2020 18:38:29 +0000 (14:38 -0400)
committerZachary Yedidia <zyedidia@gmail.com>
Fri, 29 May 2020 18:38:29 +0000 (14:38 -0400)
Fixes #1677

internal/action/bufpane.go

index 51d4ebd1fd19ff9a671cb413d8370a3b420a0e58..5d26907f5af2dcaf7ab40989ef2f3a13dbd7dd86 100644 (file)
@@ -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
        }