From: Bram Moolenaar Date: Tue, 22 Nov 2022 22:03:39 +0000 (+0000) Subject: patch 9.0.0924: the first termcap entry of a builtin termcap is not used X-Git-Tag: v9.0.0924 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c3e06e4bfa56714ff59423c2fb5868ae2334727b;p=vim patch 9.0.0924: the first termcap entry of a builtin termcap is not used Problem: The first termcap entry of a builtin termcap is not used. Solution: Remove increment that was previously skipping the KS_NAME entry. --- diff --git a/src/term.c b/src/term.c index 0e665d0b3..bb1e283be 100644 --- a/src/term.c +++ b/src/term.c @@ -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 { diff --git a/src/version.c b/src/version.c index cd2023cdd..cbc05549f 100644 --- a/src/version.c +++ b/src/version.c @@ -695,6 +695,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 924, /**/ 923, /**/