]> granicus.if.org Git - vim/commitdiff
patch 8.1.2160: cannot build with +syntax but without +terminal v8.1.2160
authorBram Moolenaar <Bram@vim.org>
Wed, 16 Oct 2019 16:42:26 +0000 (18:42 +0200)
committerBram Moolenaar <Bram@vim.org>
Wed, 16 Oct 2019 16:42:26 +0000 (18:42 +0200)
Problem:    Cannot build with +syntax but without +terminal.
Solution:   Add #ifdef.

src/drawline.c
src/version.c

index d702e9eb8a27aeab17fb88cc74e6f2d74d6803ae..1415a3177f3c823793d837ce052dbad3ee8c1ccc 100644 (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;
index 91cffb330dc02e9aac6575e986b1661456f894e5..9135fe73c95402321240dd8904f647311d65a075 100644 (file)
@@ -753,6 +753,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    2160,
 /**/
     2159,
 /**/