diff options
Diffstat (limited to 'pkg/gui/view_helpers.go')
-rw-r--r-- | pkg/gui/view_helpers.go | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/pkg/gui/view_helpers.go b/pkg/gui/view_helpers.go index 9cf58144a..eb46a7f8b 100644 --- a/pkg/gui/view_helpers.go +++ b/pkg/gui/view_helpers.go @@ -95,7 +95,7 @@ func (gui *Gui) newLineFocused(g *gocui.Gui, v *gocui.View) error { return gui.handleBranchSelect(g, v) case "commits": return gui.handleCommitSelect(g, v) - case "commit files": + case "commitFiles": return gui.handleCommitFileSelect(g, v) case "stash": return gui.handleStashEntrySelect(g, v) @@ -285,6 +285,11 @@ func (gui *Gui) getStashView() *gocui.View { return v } +func (gui *Gui) getCommitFilesView() *gocui.View { + v, _ := gui.g.View("commitFiles") + return v +} + func (gui *Gui) trimmedContent(v *gocui.View) string { return strings.TrimSpace(v.Buffer()) } |