summaryrefslogtreecommitdiffstats
path: root/pkg/gui/remotes_panel.go
diff options
context:
space:
mode:
authorJesse Duffield <jessedduffield@gmail.com>2020-08-20 08:53:10 +1000
committerJesse Duffield <jessedduffield@gmail.com>2020-08-23 14:29:18 +1000
commit146722beb875d6f44a9d05b289e1cf92e8518932 (patch)
tree2694b571bcce5d1e2a1fa83815abd8d4682894aa /pkg/gui/remotes_panel.go
parenteb5e54e9fd649e556d8c639ff87fedbfe02ff8e9 (diff)
rename to SelectedLineIdx
Diffstat (limited to 'pkg/gui/remotes_panel.go')
-rw-r--r--pkg/gui/remotes_panel.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkg/gui/remotes_panel.go b/pkg/gui/remotes_panel.go
index 7a3bdcca1..2bd3ed1e1 100644
--- a/pkg/gui/remotes_panel.go
+++ b/pkg/gui/remotes_panel.go
@@ -13,7 +13,7 @@ import (
// list panel functions
func (gui *Gui) getSelectedRemote() *commands.Remote {
- selectedLine := gui.State.Panels.Remotes.SelectedLine
+ selectedLine := gui.State.Panels.Remotes.SelectedLineIdx
if selectedLine == -1 || len(gui.State.Remotes) == 0 {
return nil
}
@@ -74,7 +74,7 @@ func (gui *Gui) handleRemoteEnter() error {
if len(remote.Branches) == 0 {
newSelectedLine = -1
}
- gui.State.Panels.RemoteBranches.SelectedLine = newSelectedLine
+ gui.State.Panels.RemoteBranches.SelectedLineIdx = newSelectedLine
return gui.switchContext(gui.Contexts.Remotes.Branches.Context)
}