diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2018-09-19 20:36:40 +1000 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2018-09-19 20:36:40 +1000 |
commit | b9708c9f8850352d18ef4d10c285698be882f838 (patch) | |
tree | 8de824457cbbc104f4dd7290213b80708465daa1 /pkg/gui/commit_message_panel.go | |
parent | 7b90d2496b56d89863b552b226f45b8de2bd1551 (diff) |
fix issues with commit message panel losing focus
Diffstat (limited to 'pkg/gui/commit_message_panel.go')
-rw-r--r-- | pkg/gui/commit_message_panel.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/pkg/gui/commit_message_panel.go b/pkg/gui/commit_message_panel.go index e23c47da0..74e02be90 100644 --- a/pkg/gui/commit_message_panel.go +++ b/pkg/gui/commit_message_panel.go @@ -37,6 +37,10 @@ func (gui *Gui) handleCommitClose(g *gocui.Gui, v *gocui.View) error { } func (gui *Gui) handleCommitFocused(g *gocui.Gui, v *gocui.View) error { + if _, err := g.SetViewOnTop("commitMessage"); err != nil { + return err + } + message := gui.Tr.TemplateLocalize( "CloseConfirm", Teml{ |