diff options
author | Stefan Haller <stefan@haller-berlin.de> | 2023-04-13 11:13:57 +0200 |
---|---|---|
committer | Stefan Haller <stefan@haller-berlin.de> | 2023-04-29 07:37:44 +0200 |
commit | d675117289cc195b7cae105a808a29383f48d9d4 (patch) | |
tree | ed4890345d61c937e96100e48bd0cd007dc3dc5a /pkg/gui/gui_common.go | |
parent | 826128a8e03fb50f7287029ebac93c85712faecb (diff) |
Fix activation of initial context
This broke with 40f6767cfc77; the symptom is that starting lazygit with a git
arg (e.g. "lazygit log") wouldn't activate the requested panel correctly. While
it would show in the expanded view, it didn't have a green frame, and keyboard
events would go to the files panel.
Diffstat (limited to 'pkg/gui/gui_common.go')
-rw-r--r-- | pkg/gui/gui_common.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/pkg/gui/gui_common.go b/pkg/gui/gui_common.go index 835aa4f54..01c73ad9a 100644 --- a/pkg/gui/gui_common.go +++ b/pkg/gui/gui_common.go @@ -70,6 +70,10 @@ func (self *guiCommon) IsCurrentContext(c types.Context) bool { return self.CurrentContext().GetKey() == c.GetKey() } +func (self *guiCommon) ActivateContext(context types.Context) error { + return self.gui.activateContext(context, types.OnFocusOpts{}) +} + func (self *guiCommon) GetAppState() *config.AppState { return self.gui.Config.GetAppState() } |