summaryrefslogtreecommitdiffstats
path: root/pkg/gui/controllers/remotes_controller.go
diff options
context:
space:
mode:
authorJesse Duffield <jessedduffield@gmail.com>2022-02-06 14:37:16 +1100
committerJesse Duffield <jessedduffield@gmail.com>2022-03-17 19:13:40 +1100
commitb93b8cc00a2f2ea339b1ecdbc380320556490d3b (patch)
treee831d088c2031c6dcc1f678f5c3af0cfc20c91ed /pkg/gui/controllers/remotes_controller.go
parentcd31a762b97c071fbd33ea9b82f679890e68eaa7 (diff)
controller for viewing sub commits
Diffstat (limited to 'pkg/gui/controllers/remotes_controller.go')
-rw-r--r--pkg/gui/controllers/remotes_controller.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/gui/controllers/remotes_controller.go b/pkg/gui/controllers/remotes_controller.go
index ff3b943fb..12d2e7459 100644
--- a/pkg/gui/controllers/remotes_controller.go
+++ b/pkg/gui/controllers/remotes_controller.go
@@ -81,7 +81,7 @@ func (self *RemotesController) enter(remote *models.Remote) error {
if len(remote.Branches) == 0 {
newSelectedLine = -1
}
- self.contexts.RemoteBranches.GetPanelState().SetSelectedLineIdx(newSelectedLine)
+ self.contexts.RemoteBranches.SetSelectedLineIdx(newSelectedLine)
return self.c.PushContext(self.contexts.RemoteBranches)
}