patch 8.2.3563: build failure with +eval but without GUI or +termguicolors
Problem: Build failure with +eval but without GUI or +termguicolors
Solution: Adjust #ifdef. (John Marriott)
diff --git a/src/highlight.c b/src/highlight.c
index 5dde08b..1226240 100644
--- a/src/highlight.c
+++ b/src/highlight.c
@@ -475,7 +475,7 @@
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 @@
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
diff --git a/src/version.c b/src/version.c
index 3bba972..57585dc 100644
--- a/src/version.c
+++ b/src/version.c
@@ -758,6 +758,8 @@
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 3563,
+/**/
3562,
/**/
3561,