changeset 31180:3fddb9e76c8d v9.0.0924

patch 9.0.0924: the first termcap entry of a builtin termcap is not used Commit: https://github.com/vim/vim/commit/c3e06e4bfa56714ff59423c2fb5868ae2334727b Author: Bram Moolenaar <Bram@vim.org> Date: Tue Nov 22 22:03:39 2022 +0000 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.
author Bram Moolenaar <Bram@vim.org>
date Tue, 22 Nov 2022 23:15:03 +0100
parents 551a8be12cf9
children 1a201705d7a6
files src/term.c src/version.c
diffstat 2 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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
 	{
--- a/src/version.c
+++ b/src/version.c
@@ -696,6 +696,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    924,
+/**/
     923,
 /**/
     922,