summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2022-11-01 22:04:40 +0000
committerBram Moolenaar <Bram@vim.org>2022-11-01 22:04:40 +0000
commit1410d1841bfc4370dec1babe24c6664e06d7c9d9 (patch)
tree7afd5836298666b59346fdace32a8ec0ac6b9434
parent3af982196b1b973e953c35351961f2a96fe34172 (diff)
patch 9.0.0827: <Home> key in tmux doesn't work when 'term' set to "xterm"v9.0.0827
Problem: The <Home> 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)
-rw-r--r--src/term.c4
-rw-r--r--src/version.c2
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 "<Esc>[@" with "<Esc>[1"
+ && (tp[modslen] != '1' || tp[modslen + 1] != ';'))
+ // no match for "<Esc>[@" with "<Esc>[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
@@ -696,6 +696,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 827,
+/**/
826,
/**/
825,