To: vim_dev@googlegroups.com Subject: Patch 9.0.0997 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ------------ Patch 9.0.0997 Problem: Coverity warns for dead code. Solution: Don't use ASCII_ISUPPER() for a negative value. Files: src/term.c *** ../vim-9.0.0996/src/term.c 2022-12-03 00:00:32.345735603 +0000 --- src/term.c 2022-12-03 10:11:34.951098438 +0000 *************** *** 5296,5302 **** if (!VIM_ISDIGIT(*ap)) first = *ap++; ! if (ASCII_ISUPPER(first)) { // If "first" is in [ABCDEFHPQRS] then it is actually the "trail" and // no argument follows. --- 5296,5302 ---- if (!VIM_ISDIGIT(*ap)) first = *ap++; ! if (first >= 'A' && first <= 'Z') { // If "first" is in [ABCDEFHPQRS] then it is actually the "trail" and // no argument follows. *** ../vim-9.0.0996/src/version.c 2022-12-03 00:00:32.345735603 +0000 --- src/version.c 2022-12-03 10:12:18.367040348 +0000 *************** *** 697,698 **** --- 697,700 ---- { /* Add new patch number below this line */ + /**/ + 997, /**/ -- I noticed my daughter's Disney-net password on a sticky note: "MickeyMinnieGoofyPluto". I asked her why it was so long. "Because they say it has to have at least four characters." /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ /// \\\ \\\ sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ /// \\\ help me help AIDS victims -- http://ICCF-Holland.org ///