patch 9.0.0827: <Home> key in tmux doesn't work when 'term' set to "xterm"
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)
diff --git a/src/term.c b/src/term.c
index 77ad08b..008734c 100644
--- a/src/term.c
+++ b/src/term.c
@@ -5519,8 +5519,8 @@
// 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 86cf25a..7e42259 100644
--- a/src/version.c
+++ b/src/version.c
@@ -696,6 +696,8 @@
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 827,
+/**/
826,
/**/
825,