1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-07-31 14:24:25 +03:00

standardise controller helper methods

This commit is contained in:
Jesse Duffield
2023-03-23 13:04:57 +11:00
parent fc91ef6a59
commit 711674f6cd
34 changed files with 262 additions and 297 deletions

View File

@ -33,7 +33,7 @@ func (self *SuggestionsController) GetKeybindings(opts types.KeybindingsOpts) []
},
{
Key: opts.GetKey(opts.Config.Universal.TogglePanel),
Handler: func() error { return self.c.ReplaceContext(self.contexts.Confirmation) },
Handler: func() error { return self.c.ReplaceContext(self.c.Contexts().Confirmation) },
},
}
@ -52,5 +52,5 @@ func (self *SuggestionsController) Context() types.Context {
}
func (self *SuggestionsController) context() *context.SuggestionsContext {
return self.contexts.Suggestions
return self.c.Contexts().Suggestions
}