Merge pull request #3261 from JoeKar/fix/command-term

action: Stop processing chained actions/commands in the moment the current `Pane` is not a `BufPane` (fix crash)
This commit is contained in:
Jöran Karl
2024-04-26 17:36:12 +02:00
committed by GitHub
3 changed files with 9 additions and 1 deletions

View File

@@ -169,6 +169,10 @@ func BufMapEvent(k Event, action string) {
// if the action changed the current pane, update the reference
h = MainTab().CurPane()
success = innerSuccess
if h == nil {
// stop, in case the current pane is not a BufPane
break
}
}
return true
}