1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-11-29 22:48:24 +02:00

WIP: standardising how we render to main

This commit is contained in:
Jesse Duffield
2020-08-18 09:03:52 +10:00
parent 0f7b2c45d7
commit 3c87ff4eff
5 changed files with 125 additions and 60 deletions

View File

@@ -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
}