From 1410d1841bfc4370dec1babe24c6664e06d7c9d9 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Tue, 1 Nov 2022 22:04:40 +0000 Subject: [PATCH] patch 9.0.0827: key in tmux doesn't work when 'term' set to "xterm" MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Problem: The key in tmux doesn't work when 'term' is set to "xterm". (Dominique Pellé) Solution: Only use '@' in a termcap key entry for "1" when ";" follows. (closes #11429) --- src/term.c | 4 ++-- src/version.c | 2 ++ 2 files changed, 4 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 "[@" with "[1" + && (tp[modslen] != '1' || tp[modslen + 1] != ';')) + // no match for "[@" with "[1;" continue; else { diff --git a/src/version.c b/src/version.c index 86cf25ad0c..7e422594f4 100644 --- a/src/version.c +++ b/src/version.c @@ -695,6 +695,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 827, /**/ 826, /**/