diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2022-08-22 19:34:02 +1000 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2022-09-09 20:55:47 -0700 |
commit | 010f430d1f429a084f888c2440a650d2ad2524e1 (patch) | |
tree | 631b6d16456c7793f75251bda3b29793da778038 /pkg/gui/gui_driver.go | |
parent | 79620fc6cfa712dd03adfd7d4b46339bbfc1575a (diff) |
add bisect integration test
Diffstat (limited to 'pkg/gui/gui_driver.go')
-rw-r--r-- | pkg/gui/gui_driver.go | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/pkg/gui/gui_driver.go b/pkg/gui/gui_driver.go index 7df2b95ba..919ad5416 100644 --- a/pkg/gui/gui_driver.go +++ b/pkg/gui/gui_driver.go @@ -79,3 +79,11 @@ func (self *GuiDriver) MainView() *gocui.View { func (self *GuiDriver) SecondaryView() *gocui.View { return self.gui.secondaryView() } + +func (self *GuiDriver) View(viewName string) *gocui.View { + view, err := self.gui.g.View(viewName) + if err != nil { + panic(err) + } + return view +} |