Skip to content

Commit 7c456a4

Browse files
committed
patch 8.0.1147: fail to build with tiny features
Problem: Fail to build with tiny features. (Tony Mechelynck) Solution: Move #ifdefs.
1 parent 452030e commit 7c456a4

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

src/syntax.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7969,9 +7969,9 @@ do_highlight(
79697969
}
79707970
else if (STRCMP(key, "GUIFG") == 0)
79717971
{
7972+
#if defined(FEAT_GUI) || defined(FEAT_EVAL)
79727973
char_u **namep = &HL_TABLE()[idx].sg_gui_fg_name;
79737974

7974-
#if defined(FEAT_GUI) || defined(FEAT_EVAL)
79757975
if (!init || !(HL_TABLE()[idx].sg_set & SG_GUI))
79767976
{
79777977
if (!init)
@@ -8019,9 +8019,9 @@ do_highlight(
80198019
}
80208020
else if (STRCMP(key, "GUIBG") == 0)
80218021
{
8022+
#if defined(FEAT_GUI) || defined(FEAT_EVAL)
80228023
char_u **namep = &HL_TABLE()[idx].sg_gui_bg_name;
80238024

8024-
#if defined(FEAT_GUI) || defined(FEAT_EVAL)
80258025
if (!init || !(HL_TABLE()[idx].sg_set & SG_GUI))
80268026
{
80278027
if (!init)
@@ -8069,9 +8069,9 @@ do_highlight(
80698069
}
80708070
else if (STRCMP(key, "GUISP") == 0)
80718071
{
8072+
#if defined(FEAT_GUI) || defined(FEAT_EVAL)
80728073
char_u **namep = &HL_TABLE()[idx].sg_gui_sp_name;
80738074

8074-
#if defined(FEAT_GUI) || defined(FEAT_EVAL)
80758075
if (!init || !(HL_TABLE()[idx].sg_set & SG_GUI))
80768076
{
80778077
if (!init)

src/version.c

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

762762
static int included_patches[] =
763763
{ /* Add new patch number below this line */
764+
/**/
765+
1147,
764766
/**/
765767
1146,
766768
/**/

0 commit comments

Comments
 (0)