mirror of
https://github.com/jesseduffield/lazygit.git
synced 2026-09-13 00:56:25 -04:00
stop switching focus to commits view when resetting
This commit is contained in:
parent
2ddd3ddfc0
commit
d26350502c
|
|
@ -122,10 +122,6 @@ func (self *RefsHelper) ResetToRef(ref string, strength string, envVars []string
|
|||
// loading a heap of commits is slow so we limit them whenever doing a reset
|
||||
self.contexts.LocalCommits.SetLimitCommits(true)
|
||||
|
||||
if err := self.c.PushContext(self.contexts.LocalCommits); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
if err := self.c.Refresh(types.RefreshOptions{Scope: []types.RefreshableView{types.FILES, types.BRANCHES, types.REFLOG, types.COMMITS}}); err != nil {
|
||||
return err
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue