summaryrefslogtreecommitdiffstats
path: root/pkg/gui/types/common.go
diff options
context:
space:
mode:
authorStefan Haller <stefan@haller-berlin.de>2023-04-13 11:13:57 +0200
committerStefan Haller <stefan@haller-berlin.de>2023-04-29 07:37:44 +0200
commitd675117289cc195b7cae105a808a29383f48d9d4 (patch)
treeed4890345d61c937e96100e48bd0cd007dc3dc5a /pkg/gui/types/common.go
parent826128a8e03fb50f7287029ebac93c85712faecb (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/types/common.go')
-rw-r--r--pkg/gui/types/common.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/pkg/gui/types/common.go b/pkg/gui/types/common.go
index aeb1da4c0..5711800f5 100644
--- a/pkg/gui/types/common.go
+++ b/pkg/gui/types/common.go
@@ -45,6 +45,7 @@ type IGuiCommon interface {
CurrentContext() Context
CurrentStaticContext() Context
IsCurrentContext(Context) bool
+ ActivateContext(context Context) error
// enters search mode for the current view
OpenSearch()