summaryrefslogtreecommitdiffstats
path: root/pkg/gui/controllers/helpers
diff options
context:
space:
mode:
authorJesse Duffield <jessedduffield@gmail.com>2022-11-13 03:26:50 +0000
committerJesse Duffield <jessedduffield@gmail.com>2022-11-13 03:26:50 +0000
commitd26350502ced891f91525075f642c6067136f984 (patch)
treee1743a43481e409b6ca5deb287fc288a19df92f0 /pkg/gui/controllers/helpers
parent2ddd3ddfc0c4ec7d356db00b781e4a85d0854044 (diff)
stop switching focus to commits view when resetting
Diffstat (limited to 'pkg/gui/controllers/helpers')
-rw-r--r--pkg/gui/controllers/helpers/refs_helper.go4
1 files changed, 0 insertions, 4 deletions
diff --git a/pkg/gui/controllers/helpers/refs_helper.go b/pkg/gui/controllers/helpers/refs_helper.go
index 7630349ec..c03a2b24c 100644
--- a/pkg/gui/controllers/helpers/refs_helper.go
+++ b/pkg/gui/controllers/helpers/refs_helper.go
@@ -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
}