diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2018-09-05 19:07:46 +1000 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2018-09-05 19:10:46 +1000 |
commit | 422b263df425aceb68f446d41ce359370f188be1 (patch) | |
tree | 4a40bf8b8b2766ce3f77efbe94e0b57f62622e49 /pkg/gui/commit_message_panel.go | |
parent | c1bf1e52b0e2bbe25a99a1cc10826fd138b7c7f9 (diff) |
fix popup panel resizing
Diffstat (limited to 'pkg/gui/commit_message_panel.go')
-rw-r--r-- | pkg/gui/commit_message_panel.go | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/pkg/gui/commit_message_panel.go b/pkg/gui/commit_message_panel.go index 26db703f0..36718680f 100644 --- a/pkg/gui/commit_message_panel.go +++ b/pkg/gui/commit_message_panel.go @@ -34,15 +34,6 @@ func (gui *Gui) handleCommitClose(g *gocui.Gui, v *gocui.View) error { } func (gui *Gui) handleNewlineCommitMessage(g *gocui.Gui, v *gocui.View) error { - // resising ahead of time so that the top line doesn't get hidden to make - // room for the cursor on the second line - x0, y0, x1, y1 := gui.getConfirmationPanelDimensions(g, v.Buffer()) - if _, err := g.SetView("commitMessage", x0, y0, x1, y1+1, 0); err != nil { - if err != gocui.ErrUnknownView { - return err - } - } - v.EditNewLine() return nil } |