1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2024-11-28 09:08:41 +02:00

sending panel to back rather than deleting

This commit is contained in:
Jesse Duffield 2018-05-26 15:47:22 +10:00
parent 10fd353a50
commit 00dca6f76d

View File

@ -53,7 +53,7 @@ func closeCommitPrompt(g *gocui.Gui, v *gocui.View) error {
filesView, _ := g.View("files")
switchFocus(g, v, filesView)
devLog("test prompt close")
if err := g.DeleteView("commit"); err != nil {
if _, err := g.SetViewOnBottom("commit"); err != nil {
return err
}
if _, err := g.SetCurrentView(state.PreviousView); err != nil {