patch 8.1.2160: cannot build with +syntax but without +terminal
Problem: Cannot build with +syntax but without +terminal.
Solution: Add #ifdef.
diff --git a/src/drawline.c b/src/drawline.c
index d702e9e..1415a31 100644
--- a/src/drawline.c
+++ b/src/drawline.c
@@ -1517,8 +1517,12 @@
else
#endif
#ifdef FEAT_SYN_HL
- if (has_syntax || get_term_attr)
- char_attr = syntax_attr;
+ if (has_syntax
+# ifdef FEAT_TERMINAL
+ || get_term_attr
+# endif
+ )
+ char_attr = syntax_attr;
else
#endif
char_attr = 0;