changeset 26209:2dd449b9c1c7 v8.2.3636

patch 8.2.3636: Coverity warns for unreachable code Commit: https://github.com/vim/vim/commit/2c23670300b18f2f799d0602ff5225caa55b0d67 Author: Bram Moolenaar <Bram@vim.org> Date: Sun Nov 21 11:15:49 2021 +0000 patch 8.2.3636: Coverity warns for unreachable code Problem: Coverity warns for unreachable code. Solution: Remove unreachable else block.
author Bram Moolenaar <Bram@vim.org>
date Sun, 21 Nov 2021 12:30:04 +0100
parents 7fc2b49f11e9
children 2121bcd70ce6
files src/gui_gtk_x11.c src/version.c
diffstat 2 files changed, 3 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/src/gui_gtk_x11.c
+++ b/src/gui_gtk_x11.c
@@ -5604,7 +5604,7 @@ gui_gtk2_draw_string(int row, int col, c
 		{
 		    slen++; // ligature char by char
 		}
-		else if (is_utf8)
+		else // is_utf8
 		{
 		    if ((*(cs + slen) & 0xC0) == 0x80)
 		    {
@@ -5638,10 +5638,6 @@ gui_gtk2_draw_string(int row, int col, c
 			slen++;
 		    }
 		}
-		else
-		{
-		    slen++;
-		}
 	    }
 	    else
 	    {
--- a/src/version.c
+++ b/src/version.c
@@ -758,6 +758,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    3636,
+/**/
     3635,
 /**/
     3634,