diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2020-11-28 20:30:16 +1100 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2020-11-28 20:48:17 +1100 |
commit | 14ce23068384778a2c743769fd902f146a4f2eae (patch) | |
tree | 311faf204d937d9f79106685a8f28c59d0114b4f /pkg/gui/editors.go | |
parent | f31fbc10f6a60e493dd09ff602b08b83bd2124fe (diff) |
refactor
Diffstat (limited to 'pkg/gui/editors.go')
-rw-r--r-- | pkg/gui/editors.go | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/pkg/gui/editors.go b/pkg/gui/editors.go index 0faa2b6fa..e55ad58d4 100644 --- a/pkg/gui/editors.go +++ b/pkg/gui/editors.go @@ -44,9 +44,7 @@ func (gui *Gui) commitMessageEditor(v *gocui.View, key gocui.Key, ch rune, mod g gui.RenderCommitLength() } -// we've just copy+pasted the editor from gocui to here so that we can also re- -// render the commit message length on each keypress -func (gui *Gui) editorWithCallback(v *gocui.View, key gocui.Key, ch rune, mod gocui.Modifier) { +func (gui *Gui) defaultEditor(v *gocui.View, key gocui.Key, ch rune, mod gocui.Modifier) { switch { case key == gocui.KeyBackspace || key == gocui.KeyBackspace2: v.EditDelete(true) |