]> granicus.if.org Git - vim/commitdiff
patch 8.2.3563: build failure with +eval but without GUI or +termguicolors v8.2.3563
authorBram Moolenaar <Bram@vim.org>
Mon, 25 Oct 2021 09:30:14 +0000 (10:30 +0100)
committerBram Moolenaar <Bram@vim.org>
Mon, 25 Oct 2021 09:30:14 +0000 (10:30 +0100)
Problem:    Build failure with +eval but without GUI or +termguicolors
Solution:   Adjust #ifdef. (John Marriott)

src/highlight.c
src/version.c

index 5dde08b8f3994d0257f94c19bbb57d1cea458bc3..1226240ffd0e7a394ed6ddf21eb58f01d273ca17 100644 (file)
@@ -475,7 +475,7 @@ load_colors(char_u *name)
     buf = alloc(STRLEN(name) + 12);
     if (buf != NULL)
     {
-#ifdef FEAT_EVAL
+#if defined(FEAT_EVAL) && (defined(FEAT_GUI) || defined(FEAT_TERMGUICOLORS))
        load_default_colors_lists();
 #endif
        apply_autocmds(EVENT_COLORSCHEMEPRE, name,
@@ -2286,7 +2286,7 @@ decode_hex_color(char_u *hex)
     return gui_adjust_rgb(color);
 }
 
-#if defined(FEAT_EVAL)
+#ifdef FEAT_EVAL
 // Returns the color currently mapped to the given name or INVALCOLOR if no
 // such name exists in the color table. The convention is to use lowercase for
 // all keys in the v:colornames dictionary. The value can be either a string in
index 3bba9728a485153a74cdcd9b07e18b003d472532..57585dc5deaef8be70ad48dfa19954289c386a7d 100644 (file)
@@ -757,6 +757,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    3563,
 /**/
     3562,
 /**/