1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-07-30 03:23:08 +03:00

centralise split main panel code

This commit is contained in:
Jesse Duffield
2020-08-18 08:26:40 +10:00
parent a12d18146c
commit 0f7b2c45d7
13 changed files with 32 additions and 26 deletions

View File

@ -19,7 +19,7 @@ func (gui *Gui) exitDiffMode() error {
func (gui *Gui) renderDiff() error {
gui.getMainView().Title = "Diff"
gui.State.SplitMainPanel = false
gui.splitMainPanel(false)
filterArg := ""
if gui.inFilterMode() {
filterArg = fmt.Sprintf(" -- %s", gui.State.FilterPath)