Skip to content

Commit a6cc5be

Browse files
committed
patch 8.1.2160: cannot build with +syntax but without +terminal
Problem: Cannot build with +syntax but without +terminal. Solution: Add #ifdef.
1 parent fafb4b1 commit a6cc5be

2 files changed

Lines changed: 8 additions & 2 deletions

File tree

src/drawline.c

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1517,8 +1517,12 @@ win_line(
15171517
else
15181518
#endif
15191519
#ifdef FEAT_SYN_HL
1520-
if (has_syntax || get_term_attr)
1521-
char_attr = syntax_attr;
1520+
if (has_syntax
1521+
# ifdef FEAT_TERMINAL
1522+
|| get_term_attr
1523+
# endif
1524+
)
1525+
char_attr = syntax_attr;
15221526
else
15231527
#endif
15241528
char_attr = 0;

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+
2160,
756758
/**/
757759
2159,
758760
/**/

0 commit comments

Comments
 (0)