Skip to content

Commit 6312256

Browse files
committed
patch 7.4.1800
Problem: Unnecessary #ifdef. Solution: Just use USE_24BIT. (Ken Takata)
1 parent 61be73b commit 6312256

2 files changed

Lines changed: 3 additions & 7 deletions

File tree

src/syntax.c

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7795,13 +7795,7 @@ do_highlight(
77957795
# if defined(FEAT_GUI) || defined(FEAT_TERMGUICOLORS)
77967796
/* In GUI guifg colors are only used when recognized */
77977797
i = color_name2handle(arg);
7798-
if (i != INVALCOLOR || STRCMP(arg, "NONE") == 0
7799-
# ifdef FEAT_GUI
7800-
|| !(USE_24BIT)
7801-
# else
7802-
|| !p_tgc
7803-
# endif
7804-
)
7798+
if (i != INVALCOLOR || STRCMP(arg, "NONE") == 0 || !USE_24BIT)
78057799
{
78067800
HL_TABLE()[idx].sg_gui_fg = i;
78077801
# endif

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -753,6 +753,8 @@ static char *(features[]) =
753753

754754
static int included_patches[] =
755755
{ /* Add new patch number below this line */
756+
/**/
757+
1800,
756758
/**/
757759
1799,
758760
/**/

0 commit comments

Comments
 (0)