diff --git a/utils.go b/utils.go index af4e005..4bdee9e 100644 --- a/utils.go +++ b/utils.go @@ -113,8 +113,13 @@ func escapeExKey(key *escapeKeyPair) rune { case 'F': r = CharLineEnd case '~': - if key.attr == "3" { + switch key.attr { + case "1": + r = CharLineStart + case "3": r = CharDelete + case "4": + r = CharLineEnd } default: }