mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-05-11 12:25:47 +02:00
Fix activation of initial context
This broke with 40f6767cfc
; 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.
This commit is contained in:
parent
826128a8e0
commit
d675117289
3 changed files with 6 additions and 1 deletions
|
@ -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()
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue