aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/nvim/keymap.c1
-rw-r--r--src/nvim/tui/input.c3
2 files changed, 1 insertions, 3 deletions
diff --git a/src/nvim/keymap.c b/src/nvim/keymap.c
index 2b6f022d9d..b53a0d3e0b 100644
--- a/src/nvim/keymap.c
+++ b/src/nvim/keymap.c
@@ -156,6 +156,7 @@ static const struct key_name_entry {
{ K_BS, "BS" },
{ K_BS, "BackSpace" }, // Alternative name
{ ESC, "Esc" },
+ { ESC, "Escape" }, // Alternative name
{ CSI, "CSI" },
{ K_CSI, "xCSI" },
{ '|', "Bar" },
diff --git a/src/nvim/tui/input.c b/src/nvim/tui/input.c
index bbee7e4712..cc04920b32 100644
--- a/src/nvim/tui/input.c
+++ b/src/nvim/tui/input.c
@@ -198,9 +198,6 @@ static void forward_modified_utf8(TermInput *input, TermKeyKey *key)
char buf[64];
if (key->type == TERMKEY_TYPE_KEYSYM
- && key->code.sym == TERMKEY_SYM_ESCAPE) {
- len = (size_t)snprintf(buf, sizeof(buf), "<Esc>");
- } else if (key->type == TERMKEY_TYPE_KEYSYM
&& key->code.sym == TERMKEY_SYM_SUSPEND) {
len = (size_t)snprintf(buf, sizeof(buf), "<C-Z>");
} else {