changeset 21085:bc81b275d4d6 v8.2.1094

patch 8.2.1094: dead code in libvterm Commit: https://github.com/vim/vim/commit/a53618dd1dd91c7bb67b5dfc83dc29371b47f55b Author: Bram Moolenaar <Bram@vim.org> Date: Mon Jun 29 23:14:02 2020 +0200 patch 8.2.1094: dead code in libvterm Problem: Dead code in libvterm. Solution: Remove condition that is always true.
author Bram Moolenaar <Bram@vim.org>
date Mon, 29 Jun 2020 23:15:05 +0200
parents 0768e80dc778
children 6e6dc7d7b040
files src/libvterm/src/pen.c src/version.c
diffstat 2 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/libvterm/src/pen.c
+++ b/src/libvterm/src/pen.c
@@ -106,8 +106,7 @@ static int lookup_colour(const VTermStat
     }
 
     lookup_colour_palette(state, args[0], col);
-
-    return argcount ? 1 : 0;
+    return 1;
 
   default:
     DEBUG_LOG1("Unrecognised colour palette %d\n", palette);
--- a/src/version.c
+++ b/src/version.c
@@ -755,6 +755,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    1094,
+/**/
     1093,
 /**/
     1092,