diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2020-08-16 13:58:29 +1000 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2020-08-23 14:29:18 +1000 |
commit | 7f89113245307be8a1642105014e9ce51a47210f (patch) | |
tree | 0b1237c4bdd4a465bedb7cc49c8372d0bfc46ea5 /pkg/gui/commit_message_panel.go | |
parent | 0ea0c486310558e26af7ad6e4fcf17f57c2b62e3 (diff) |
WIP
Diffstat (limited to 'pkg/gui/commit_message_panel.go')
-rw-r--r-- | pkg/gui/commit_message_panel.go | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/pkg/gui/commit_message_panel.go b/pkg/gui/commit_message_panel.go index 9c1a3ff52..f84abcdeb 100644 --- a/pkg/gui/commit_message_panel.go +++ b/pkg/gui/commit_message_panel.go @@ -44,19 +44,19 @@ func (gui *Gui) handleCommitConfirm(g *gocui.Gui, v *gocui.View) error { } v.Clear() + _, _ = g.SetViewOnBottom("commitMessage") // TODO: bring into context code _ = v.SetCursor(0, 0) _ = v.SetOrigin(0, 0) - _, _ = g.SetViewOnBottom("commitMessage") - _ = gui.switchFocus(v, gui.getFilesView()) + _ = gui.returnFromContext() return gui.refreshSidePanels(refreshOptions{mode: ASYNC}) } func (gui *Gui) handleCommitClose(g *gocui.Gui, v *gocui.View) error { - _, _ = g.SetViewOnBottom("commitMessage") - return gui.switchFocus(v, gui.getFilesView()) + _, _ = g.SetViewOnBottom("commitMessage") // TODO: bring into context code + return gui.returnFromContext() } -func (gui *Gui) handleCommitFocused() error { +func (gui *Gui) handleCommitMessageFocused() error { if _, err := gui.g.SetViewOnTop("commitMessage"); err != nil { return err } |