From d0aa5c26c7e2c6e2b1dc2776dd386e47fa453228 Mon Sep 17 00:00:00 2001 From: lambdalisue Date: Fri, 8 Feb 2019 21:40:41 +0900 Subject: [PATCH] Support arrows in Application mode --- utils.go | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/utils.go b/utils.go index af4e005..2cc2e3b 100644 --- a/utils.go +++ b/utils.go @@ -175,6 +175,14 @@ func escapeKey(r rune, reader *bufio.Reader) rune { case 'O': d, _, _ := reader.ReadRune() switch d { + case 'D': + r = CharBackward + case 'C': + r = CharForward + case 'A': + r = CharPrev + case 'B': + r = CharNext case 'H': r = CharLineStart case 'F':