Support arrows in Application mode

This commit is contained in:
lambdalisue 2019-02-08 21:40:41 +09:00
parent 2972be24d4
commit d0aa5c26c7
No known key found for this signature in database
GPG Key ID: 524557EA62689BDD
1 changed files with 8 additions and 0 deletions

View File

@ -175,6 +175,14 @@ func escapeKey(r rune, reader *bufio.Reader) rune {
case 'O': case 'O':
d, _, _ := reader.ReadRune() d, _, _ := reader.ReadRune()
switch d { switch d {
case 'D':
r = CharBackward
case 'C':
r = CharForward
case 'A':
r = CharPrev
case 'B':
r = CharNext
case 'H': case 'H':
r = CharLineStart r = CharLineStart
case 'F': case 'F':