diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2020-08-18 09:03:52 +1000 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2020-08-23 14:29:18 +1000 |
commit | 3c87ff4eff46449d5e697e954b3bdf01d2c76f19 (patch) | |
tree | c1c8c67ba187d1d145e803a99957093682e3145b /pkg/gui/view_helpers.go | |
parent | 0f7b2c45d773989229cb84a0147232962c6ae0e0 (diff) |
WIP: standardising how we render to main
Diffstat (limited to 'pkg/gui/view_helpers.go')
-rw-r--r-- | pkg/gui/view_helpers.go | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/pkg/gui/view_helpers.go b/pkg/gui/view_helpers.go index 137e0e96f..df3dc5ece 100644 --- a/pkg/gui/view_helpers.go +++ b/pkg/gui/view_helpers.go @@ -368,16 +368,3 @@ func (gui *Gui) clearEditorView(v *gocui.View) { _ = v.SetCursor(0, 0) _ = v.SetOrigin(0, 0) } - -func (gui *Gui) splitMainPanel(state bool) { - gui.State.SplitMainPanel = state - - // no need to set view on bottom when state is false: it will have zero size anyway thanks to our view arrangement code. - if state { - _, _ = gui.g.SetViewOnTop("secondary") - } -} - -func (gui *Gui) isMainPanelSplit() bool { - return gui.State.SplitMainPanel -} |