1
0
forked from aniani/vim

patch 8.1.2160: cannot build with +syntax but without +terminal

Problem:    Cannot build with +syntax but without +terminal.
Solution:   Add #ifdef.
This commit is contained in:
Bram Moolenaar
2019-10-16 18:42:26 +02:00
parent fafb4b18cd
commit a6cc5beb17
2 changed files with 8 additions and 2 deletions

View File

@@ -1517,8 +1517,12 @@ win_line(
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;