action: Stop action iteration in the moment the current pane isn't a BufPane
This commit is contained in:
parent
5510317942
commit
26fa15c147
1 changed files with 4 additions and 0 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue