1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-10-25 05:37:37 +03:00

more consistent naming

This commit is contained in:
Jesse Duffield
2022-02-13 17:01:53 +11:00
parent 55af07a1bb
commit 371b8d638b
18 changed files with 48 additions and 48 deletions

View File

@@ -46,11 +46,11 @@ func (gui *Gui) setFiltering(path string) error {
gui.State.ScreenMode = SCREEN_HALF
}
if err := gui.c.PushContext(gui.State.Contexts.BranchCommits); err != nil {
if err := gui.c.PushContext(gui.State.Contexts.LocalCommits); err != nil {
return err
}
return gui.c.Refresh(types.RefreshOptions{Scope: []types.RefreshableView{types.COMMITS}, Then: func() {
gui.State.Contexts.BranchCommits.SetSelectedLineIdx(0)
gui.State.Contexts.LocalCommits.SetSelectedLineIdx(0)
}})
}