summaryrefslogtreecommitdiffstats
path: root/src/highlight.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2021-10-25 10:30:14 +0100
committerBram Moolenaar <Bram@vim.org>2021-10-25 10:30:14 +0100
commit2a52196b78f3fcc0e9fad538984272c5fd8d85db (patch)
tree51d932ac8fc97849389c9ed29998bfc406d5b815 /src/highlight.c
parente30d10253fa634c4f60daa798d029245f4eed393 (diff)
patch 8.2.3563: build failure with +eval but without GUI or +termguicolorsv8.2.3563
Problem: Build failure with +eval but without GUI or +termguicolors Solution: Adjust #ifdef. (John Marriott)
Diffstat (limited to 'src/highlight.c')
-rw-r--r--src/highlight.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/highlight.c b/src/highlight.c
index 5dde08b8f3..1226240ffd 100644
--- a/src/highlight.c
+++ b/src/highlight.c
@@ -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