changeset 18331:3e657635ca36 v8.1.2160

patch 8.1.2160: cannot build with +syntax but without +terminal Commit: https://github.com/vim/vim/commit/a6cc5beb1705359828a45b91402c34640f4e756a Author: Bram Moolenaar <Bram@vim.org> Date: Wed Oct 16 18:42:26 2019 +0200 patch 8.1.2160: cannot build with +syntax but without +terminal Problem: Cannot build with +syntax but without +terminal. Solution: Add #ifdef.
author Bram Moolenaar <Bram@vim.org>
date Wed, 16 Oct 2019 18:45:04 +0200
parents 6f41e4d7a05a
children de63e2137a96
files src/drawline.c src/version.c
diffstat 2 files changed, 8 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/drawline.c
+++ b/src/drawline.c
@@ -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;
--- a/src/version.c
+++ b/src/version.c
@@ -754,6 +754,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    2160,
+/**/
     2159,
 /**/
     2158,