]> granicus.if.org Git - vim/commitdiff
patch 9.0.0827: <Home> key in tmux doesn't work when 'term' set to "xterm" v9.0.0827
authorBram Moolenaar <Bram@vim.org>
Tue, 1 Nov 2022 22:04:40 +0000 (22:04 +0000)
committerBram Moolenaar <Bram@vim.org>
Tue, 1 Nov 2022 22:04:40 +0000 (22:04 +0000)
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)

src/term.c
src/version.c

index 77ad08bf183db4549c16431636f621cb97381614..008734c275dd599b9b63a04ea53b0b69df5125a1 100644 (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
                        {
index 86cf25ad0cf6bbdf80ae26481afa5cb82deadfe1..7e422594f441ff527078857be642ae1668525f79 100644 (file)
@@ -695,6 +695,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    827,
 /**/
     826,
 /**/