0
0
mirror of https://github.com/vim/vim.git synced 2025-09-26 04:04:07 -04:00

patch 7.4.1800

Problem:    Unnecessary #ifdef.
Solution:   Just use USE_24BIT. (Ken Takata)
This commit is contained in:
Bram Moolenaar
2016-04-30 12:28:15 +02:00
parent 61be73bb0f
commit 631225627d
2 changed files with 3 additions and 7 deletions

View File

@@ -7795,13 +7795,7 @@ do_highlight(
# if defined(FEAT_GUI) || defined(FEAT_TERMGUICOLORS) # if defined(FEAT_GUI) || defined(FEAT_TERMGUICOLORS)
/* In GUI guifg colors are only used when recognized */ /* In GUI guifg colors are only used when recognized */
i = color_name2handle(arg); i = color_name2handle(arg);
if (i != INVALCOLOR || STRCMP(arg, "NONE") == 0 if (i != INVALCOLOR || STRCMP(arg, "NONE") == 0 || !USE_24BIT)
# ifdef FEAT_GUI
|| !(USE_24BIT)
# else
|| !p_tgc
# endif
)
{ {
HL_TABLE()[idx].sg_gui_fg = i; HL_TABLE()[idx].sg_gui_fg = i;
# endif # endif

View File

@@ -753,6 +753,8 @@ static char *(features[]) =
static int included_patches[] = static int included_patches[] =
{ /* Add new patch number below this line */ { /* Add new patch number below this line */
/**/
1800,
/**/ /**/
1799, 1799,
/**/ /**/