comparison src/term.c @ 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 e352d200d096
children 79701601ba55
comparison
equal deleted inserted replaced
31326:b35a91445cb4 31327:ab527a32a5d8
5294 5294
5295 // Check for non-digit after CSI. 5295 // Check for non-digit after CSI.
5296 if (!VIM_ISDIGIT(*ap)) 5296 if (!VIM_ISDIGIT(*ap))
5297 first = *ap++; 5297 first = *ap++;
5298 5298
5299 if (ASCII_ISUPPER(first)) 5299 if (first >= 'A' && first <= 'Z')
5300 { 5300 {
5301 // If "first" is in [ABCDEFHPQRS] then it is actually the "trail" and 5301 // If "first" is in [ABCDEFHPQRS] then it is actually the "trail" and
5302 // no argument follows. 5302 // no argument follows.
5303 trail = first; 5303 trail = first;
5304 first = -1; 5304 first = -1;