1
0
forked from aniani/vim

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)
This commit is contained in:
Bram Moolenaar
2022-11-01 22:04:40 +00:00
parent 3af982196b
commit 1410d1841b
2 changed files with 4 additions and 2 deletions

View File

@@ -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
{

View File

@@ -695,6 +695,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
827,
/**/
826,
/**/