1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-03-17 21:18:31 +02:00

fix bug where we had two sets of contexts with their own state

This commit is contained in:
Jesse Duffield 2021-04-02 20:48:22 +11:00
parent 4e5b94ec0f
commit 83a0fb65f6

View File

@ -530,19 +530,20 @@ func (gui *Gui) suggestionsListContext() *ListContext {
func (gui *Gui) getListContexts() []*ListContext {
return []*ListContext{
gui.menuListContext(),
gui.filesListContext(),
gui.branchesListContext(),
gui.remotesListContext(),
gui.remoteBranchesListContext(),
gui.tagsListContext(),
gui.branchCommitsListContext(),
gui.reflogCommitsListContext(),
gui.subCommitsListContext(),
gui.stashListContext(),
gui.commitFilesListContext(),
gui.submodulesListContext(),
gui.suggestionsListContext(),
gui.Contexts.Menu.Context.(*ListContext),
gui.Contexts.Files.Context.(*ListContext),
gui.Contexts.Branches.Context.(*ListContext),
gui.Contexts.Remotes.Context.(*ListContext),
gui.Contexts.Remotes.Branches.Context.(*ListContext),
gui.Contexts.Tags.Context.(*ListContext),
gui.Contexts.BranchCommits.Context.(*ListContext),
gui.Contexts.BranchCommits.Context.(*ListContext),
gui.Contexts.ReflogCommits.Context.(*ListContext),
gui.Contexts.SubCommits.Context.(*ListContext),
gui.Contexts.Stash.Context.(*ListContext),
gui.Contexts.CommitFiles.Context.(*ListContext),
gui.Contexts.Submodules.Context.(*ListContext),
gui.Contexts.Suggestions.Context.(*ListContext),
}
}