mirror of
https://github.com/jesseduffield/lazygit.git
synced 2026-08-24 10:13:41 -05: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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user