Skip to content

Commit 1d40bd1

Browse files
Merge pull request #2104 from LiamKearn/feat-emacs-char-nav
2 parents fd66499 + 6422b39 commit 1d40bd1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkg/gui/editors.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@ func (gui *Gui) handleEditorKeypress(textArea *gocui.TextArea, key gocui.Key, ch
2222
textArea.MoveCursorDown()
2323
case key == gocui.KeyArrowUp:
2424
textArea.MoveCursorUp()
25-
case key == gocui.KeyArrowLeft:
25+
case key == gocui.KeyArrowLeft || key == gocui.KeyCtrlB:
2626
textArea.MoveCursorLeft()
27-
case key == gocui.KeyArrowRight:
27+
case key == gocui.KeyArrowRight || key == gocui.KeyCtrlF:
2828
textArea.MoveCursorRight()
2929
case key == newlineKey:
3030
if allowMultiline {

0 commit comments

Comments
 (0)