summaryrefslogtreecommitdiffstats
path: root/pkg/gui/view_helpers.go
diff options
context:
space:
mode:
authorJesse Duffield <jessedduffield@gmail.com>2019-10-30 20:23:25 +1100
committerJesse Duffield <jessedduffield@gmail.com>2019-11-05 19:22:01 +1100
commit820f3d5cbb556f1c117906e4174f35ecf71e2ed5 (patch)
tree591c593fff6636707d06860cc7b918a92c573de0 /pkg/gui/view_helpers.go
parent081598d98944cdb95bfa649812565127c0592f5e (diff)
support split view in staging panel and staging ranges
Diffstat (limited to 'pkg/gui/view_helpers.go')
-rw-r--r--pkg/gui/view_helpers.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/pkg/gui/view_helpers.go b/pkg/gui/view_helpers.go
index 97f394ec3..5c5678a14 100644
--- a/pkg/gui/view_helpers.go
+++ b/pkg/gui/view_helpers.go
@@ -300,6 +300,11 @@ func (gui *Gui) getMainView() *gocui.View {
return v
}
+func (gui *Gui) getSecondaryView() *gocui.View {
+ v, _ := gui.g.View("secondary")
+ return v
+}
+
func (gui *Gui) getStashView() *gocui.View {
v, _ := gui.g.View("stash")
return v