summaryrefslogtreecommitdiffstats
path: root/src/term.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/term.c')
-rw-r--r--src/term.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/term.c b/src/term.c
index 77ad08bf18..008734c275 100644
--- a/src/term.c
+++ b/src/term.c
@@ -5519,8 +5519,8 @@ check_termcode(
// no match for "code;*X" with "code;"
continue;
else if (termcodes[idx].code[modslen] == '@'
- && tp[modslen] != '1')
- // no match for "<Esc>[@" with "<Esc>[1"
+ && (tp[modslen] != '1' || tp[modslen + 1] != ';'))
+ // no match for "<Esc>[@" with "<Esc>[1;"
continue;
else
{