summaryrefslogtreecommitdiffstats
path: root/pkg/gui/commits_panel.go
diff options
context:
space:
mode:
authorJesse Duffield <jessedduffield@gmail.com>2020-08-17 21:58:30 +1000
committerJesse Duffield <jessedduffield@gmail.com>2020-08-23 14:29:18 +1000
commitac0eedda91ae20992ad106d98fdd164d4264f6f2 (patch)
tree1a9f9c8e5dddeb4d8cf9a9fba12bd949fac7c447 /pkg/gui/commits_panel.go
parente87635295a7afde0e82ecee8b820e5708fb2f046 (diff)
lots more stuff
Diffstat (limited to 'pkg/gui/commits_panel.go')
-rw-r--r--pkg/gui/commits_panel.go10
1 files changed, 3 insertions, 7 deletions
diff --git a/pkg/gui/commits_panel.go b/pkg/gui/commits_panel.go
index 6d88d30f9..ed27a8495 100644
--- a/pkg/gui/commits_panel.go
+++ b/pkg/gui/commits_panel.go
@@ -31,10 +31,6 @@ func (gui *Gui) handleCommitSelect() error {
return err
}
- if _, err := gui.g.SetCurrentView("commits"); err != nil {
- return err
- }
-
state := gui.State.Panels.Commits
if state.SelectedLine > 290 && state.LimitCommits {
state.LimitCommits = false
@@ -739,9 +735,9 @@ func (gui *Gui) handleGotoBottomForCommitsPanel(g *gocui.Gui, v *gocui.View) err
}
}
- for _, view := range gui.getListViews() {
- if view.ViewName == "commits" {
- return view.handleGotoBottom(g, v)
+ for _, context := range gui.getListContexts() {
+ if context.ViewName == "commits" {
+ return context.handleGotoBottom(g, v)
}
}