summaryrefslogtreecommitdiffstats
path: root/pkg/gui/editors.go
diff options
context:
space:
mode:
authorJesse Duffield <jessedduffield@gmail.com>2022-09-24 10:08:13 -0700
committerGitHub <noreply@github.com>2022-09-24 10:08:13 -0700
commit1d40bd1707d2283d9007da983b2d47751c55129b (patch)
treee1f84074b5504d82dc4a8f22af2799b5a9f67977 /pkg/gui/editors.go
parentfd66499c8faddc98ee9985f9b5e7e50320617410 (diff)
parent6422b399e73967f012c29b05c9a26fc9e852711a (diff)
Merge pull request #2104 from LiamKearn/feat-emacs-char-nav
Diffstat (limited to 'pkg/gui/editors.go')
-rw-r--r--pkg/gui/editors.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkg/gui/editors.go b/pkg/gui/editors.go
index 2fd606a3b..20223d117 100644
--- a/pkg/gui/editors.go
+++ b/pkg/gui/editors.go
@@ -22,9 +22,9 @@ func (gui *Gui) handleEditorKeypress(textArea *gocui.TextArea, key gocui.Key, ch
textArea.MoveCursorDown()
case key == gocui.KeyArrowUp:
textArea.MoveCursorUp()
- case key == gocui.KeyArrowLeft:
+ case key == gocui.KeyArrowLeft || key == gocui.KeyCtrlB:
textArea.MoveCursorLeft()
- case key == gocui.KeyArrowRight:
+ case key == gocui.KeyArrowRight || key == gocui.KeyCtrlF:
textArea.MoveCursorRight()
case key == newlineKey:
if allowMultiline {