action: Stop action iteration in the moment the current pane isn't a BufPane

This commit is contained in:
Jöran Karl 2024-04-23 20:44:24 +02:00
parent 5510317942
commit 26fa15c147

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
}