mirror of
https://github.com/jesseduffield/lazygit.git
synced 2026-09-10 07:36:27 -04:00
Call OnMenuPress(nil) when hitting esc in a menu
OnMenuPress can already deal with the selected item being nil, so this allows us to add common code to it that is run when cancelling the menu.
This commit is contained in:
parent
2ab78ad039
commit
7a0320b4ec
|
|
@ -78,8 +78,7 @@ func (self *MenuController) close() error {
|
|||
return nil
|
||||
}
|
||||
|
||||
self.c.Context().Pop()
|
||||
return nil
|
||||
return self.context().OnMenuPress(nil)
|
||||
}
|
||||
|
||||
func (self *MenuController) context() *context.MenuContext {
|
||||
|
|
|
|||
Loading…
Reference in a new issue