diff --git a/utils.go b/utils.go index af4e005..9f0e7a1 100644 --- a/utils.go +++ b/utils.go @@ -102,8 +102,14 @@ func escapeExKey(key *escapeKeyPair) rune { switch key.typ { case 'D': r = CharBackward + if key.attr == "1;5" { + r = MetaBackward + } case 'C': r = CharForward + if key.attr == "1;5" { + r = MetaForward + } case 'A': r = CharPrev case 'B':