summaryrefslogtreecommitdiffstats
path: root/pkg/gui/editors.go
diff options
context:
space:
mode:
authorJesse Duffield <jessedduffield@gmail.com>2021-04-02 15:08:15 +1100
committerJesse Duffield <jessedduffield@gmail.com>2021-04-06 19:34:32 +1000
commit1a5f380c00d218712dce1225d7948e3d81cda248 (patch)
tree1e38f26404547443906b724953b4186a6089261c /pkg/gui/editors.go
parentb4827a98ca43bea26df5c7ae24135db4528ed467 (diff)
support alt-enter for inserting newline when typing commit message within the app
Diffstat (limited to 'pkg/gui/editors.go')
-rw-r--r--pkg/gui/editors.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/gui/editors.go b/pkg/gui/editors.go
index 0cddd1385..7d3054cd0 100644
--- a/pkg/gui/editors.go
+++ b/pkg/gui/editors.go
@@ -11,7 +11,7 @@ import (
func (gui *Gui) commitMessageEditor(v *gocui.View, key gocui.Key, ch rune, mod gocui.Modifier) bool {
newlineKey, ok := gui.getKey(gui.Config.GetUserConfig().Keybinding.Universal.AppendNewline).(gocui.Key)
if !ok {
- newlineKey = gocui.KeyTab
+ newlineKey = gocui.KeyAltEnter
}
matched := true