Skip to content

Commit

Permalink
patch 8.2.3563: build failure with +eval but without GUI or +termguic…
Browse files Browse the repository at this point in the history
…olors

Problem:    Build failure with +eval but without GUI or +termguicolors
Solution:   Adjust #ifdef. (John Marriott)
  • Loading branch information
brammool committed Oct 25, 2021
1 parent e30d102 commit 2a52196
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/highlight.c
Expand Up @@ -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,
Expand Down Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions src/version.c
Expand Up @@ -757,6 +757,8 @@ static char *(features[]) =

static int included_patches[] =
{ /* Add new patch number below this line */
/**/
3563,
/**/
3562,
/**/
Expand Down

0 comments on commit 2a52196

Please sign in to comment.