]> granicus.if.org Git - vim/commitdiff
patch 9.0.0924: the first termcap entry of a builtin termcap is not used v9.0.0924
authorBram Moolenaar <Bram@vim.org>
Tue, 22 Nov 2022 22:03:39 +0000 (22:03 +0000)
committerBram Moolenaar <Bram@vim.org>
Tue, 22 Nov 2022 22:03:39 +0000 (22:03 +0000)
Problem:    The first termcap entry of a builtin termcap is not used.
Solution:   Remove increment that was previously skipping the KS_NAME entry.

src/term.c
src/version.c

index 0e665d0b34432c31e9eeb1d12397f62e423465fc..bb1e283be74346ca32716aba1b2d3ce489a4390e 100644 (file)
@@ -1507,7 +1507,7 @@ parse_builtin_tcap(char_u *term)
 
     int term_8bit = term_is_8bit(term);
 
-    for (++p; p->bt_entry != (int)KS_NAME && p->bt_entry != BT_EXTRA_KEYS; ++p)
+    for ( ; p->bt_entry != (int)KS_NAME && p->bt_entry != BT_EXTRA_KEYS; ++p)
     {
        if ((int)p->bt_entry >= 0)      // KS_xx entry
        {
index cd2023cdd89220af56c065b6befc150dbc959d19..cbc05549f1d547feaf0fa5a30528e131e06bb6a5 100644 (file)
@@ -695,6 +695,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    924,
 /**/
     923,
 /**/