diff --git a/commit_panel.go b/commit_panel.go index 17f54882a..5652cd59b 100644 --- a/commit_panel.go +++ b/commit_panel.go @@ -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 {