diff options
author | Dawid Dziurla <dawidd0811@gmail.com> | 2018-09-03 18:45:52 +0200 |
---|---|---|
committer | Dawid Dziurla <dawidd0811@gmail.com> | 2018-09-03 18:45:52 +0200 |
commit | 67d99a24ea2686be562e8edfb650da5d90c5a68c (patch) | |
tree | 95bd721ecf657815fdee2c01bff375978cd98715 /pkg/gui/view_helpers.go | |
parent | bf8514f5e2fa5182fadbee08f1348b0e5021b3aa (diff) |
get selected branch from correct panel
Diffstat (limited to 'pkg/gui/view_helpers.go')
-rw-r--r-- | pkg/gui/view_helpers.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/pkg/gui/view_helpers.go b/pkg/gui/view_helpers.go index 4cab2de08..5f2630204 100644 --- a/pkg/gui/view_helpers.go +++ b/pkg/gui/view_helpers.go @@ -248,6 +248,7 @@ func (gui *Gui) renderOptionsMap(g *gocui.Gui, optionsMap map[string]string) err } // TODO: refactor properly +// i'm so sorry but had to add this getBranchesView func (gui *Gui) getFilesView(g *gocui.Gui) *gocui.View { v, _ := g.View("files") return v @@ -263,6 +264,11 @@ func (gui *Gui) getCommitMessageView(g *gocui.Gui) *gocui.View { return v } +func (gui *Gui) getBranchesView(g *gocui.Gui) *gocui.View { + v, _ := g.View("branches") + return v +} + func (gui *Gui) trimmedContent(v *gocui.View) string { return strings.TrimSpace(v.Buffer()) } |