]> granicus.if.org Git - vim/commitdiff
patch 8.2.1094: dead code in libvterm v8.2.1094
authorBram Moolenaar <Bram@vim.org>
Mon, 29 Jun 2020 21:14:02 +0000 (23:14 +0200)
committerBram Moolenaar <Bram@vim.org>
Mon, 29 Jun 2020 21:14:02 +0000 (23:14 +0200)
Problem:    Dead code in libvterm.
Solution:   Remove condition that is always true.

src/libvterm/src/pen.c
src/version.c

index 173f64f68276f531738d7e9a1f44a96f01867517..c5a0b71c5d8b5ca3b1bb806025e6315e1050e087 100644 (file)
@@ -106,8 +106,7 @@ static int lookup_colour(const VTermState *state, int palette, const long args[]
     }
 
     lookup_colour_palette(state, args[0], col);
-
-    return argcount ? 1 : 0;
+    return 1;
 
   default:
     DEBUG_LOG1("Unrecognised colour palette %d\n", palette);
index 3697248306dcc30678e240bc22836613845438d7..83f5c2efe5555940cf782d09f42f75a09676b2fc 100644 (file)
@@ -754,6 +754,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1094,
 /**/
     1093,
 /**/