changeset 31327:ab527a32a5d8 v9.0.0997

patch 9.0.0997: Coverity warns for dead code Commit: https://github.com/vim/vim/commit/8ffb7e051da74afef7264e1f25a7142f15aa1f60 Author: Bram Moolenaar <Bram@vim.org> Date: Sat Dec 3 10:13:30 2022 +0000 patch 9.0.0997: Coverity warns for dead code Problem: Coverity warns for dead code. Solution: Don't use ASCII_ISUPPER() for a negative value.
author Bram Moolenaar <Bram@vim.org>
date Sat, 03 Dec 2022 11:15:05 +0100
parents b35a91445cb4
children aeffee6a601a
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
@@ -5296,7 +5296,7 @@ handle_csi(
     if (!VIM_ISDIGIT(*ap))
 	first = *ap++;
 
-    if (ASCII_ISUPPER(first))
+    if (first >= 'A' && first <= 'Z')
     {
 	// If "first" is in [ABCDEFHPQRS] then it is actually the "trail" and
 	// no argument follows.
--- 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 */
 /**/
+    997,
+/**/
     996,
 /**/
     995,