diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2020-08-20 08:53:10 +1000 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2020-08-23 14:29:18 +1000 |
commit | 146722beb875d6f44a9d05b289e1cf92e8518932 (patch) | |
tree | 2694b571bcce5d1e2a1fa83815abd8d4682894aa /pkg/gui/reflog_panel.go | |
parent | eb5e54e9fd649e556d8c639ff87fedbfe02ff8e9 (diff) |
rename to SelectedLineIdx
Diffstat (limited to 'pkg/gui/reflog_panel.go')
-rw-r--r-- | pkg/gui/reflog_panel.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pkg/gui/reflog_panel.go b/pkg/gui/reflog_panel.go index bf3c91baf..1ccb8e4ac 100644 --- a/pkg/gui/reflog_panel.go +++ b/pkg/gui/reflog_panel.go @@ -8,7 +8,7 @@ import ( // list panel functions func (gui *Gui) getSelectedReflogCommit() *commands.Commit { - selectedLine := gui.State.Panels.ReflogCommits.SelectedLine + selectedLine := gui.State.Panels.ReflogCommits.SelectedLineIdx reflogComits := gui.State.FilteredReflogCommits if selectedLine == -1 || len(reflogComits) == 0 { return nil @@ -102,7 +102,7 @@ func (gui *Gui) handleCheckoutReflogCommit(g *gocui.Gui, v *gocui.View) error { return err } - gui.State.Panels.ReflogCommits.SelectedLine = 0 + gui.State.Panels.ReflogCommits.SelectedLineIdx = 0 return nil } |