diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2021-03-31 23:20:36 +1100 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2021-04-02 11:00:15 +1100 |
commit | 8dee06f83a1aebe9eb085e67b790f166f9d205af (patch) | |
tree | 620c8ef558e6d38d82c2565ca854c0b22d1e6f0f /pkg/gui/view_helpers.go | |
parent | 82fe4aa6c0e24852f4c73030447fdd99deda5e66 (diff) |
allow toggling tree view for commit files panel
Diffstat (limited to 'pkg/gui/view_helpers.go')
-rw-r--r-- | pkg/gui/view_helpers.go | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/pkg/gui/view_helpers.go b/pkg/gui/view_helpers.go index 51947837d..9a9017d14 100644 --- a/pkg/gui/view_helpers.go +++ b/pkg/gui/view_helpers.go @@ -237,13 +237,16 @@ func (gui *Gui) renderOptionsMap(optionsMap map[string]string) { gui.renderString("options", gui.optionsMapToString(optionsMap)) } -// TODO: refactor properly -// i'm so sorry but had to add this getBranchesView func (gui *Gui) getFilesView() *gocui.View { v, _ := gui.g.View("files") return v } +func (gui *Gui) getCommitFilesView() *gocui.View { + v, _ := gui.g.View("commitFiles") + return v +} + func (gui *Gui) getCommitMessageView() *gocui.View { v, _ := gui.g.View("commitMessage") return v |