summaryrefslogtreecommitdiff
path: root/src/feature.h
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2019-10-19 17:38:03 +0200
committerBram Moolenaar <Bram@vim.org>2019-10-19 17:38:03 +0200
commita74fda6f4d21d8e0652e9cfa04dd3e041f779f62 (patch)
tree1220a8808f31a0d960ed39fe07e9f67d46849aae /src/feature.h
parent00e192becd50a38cb21a1bc3f86fcc7a21f8ee88 (diff)
downloadvim-git-a74fda6f4d21d8e0652e9cfa04dd3e041f779f62.tar.gz
patch 8.1.2181: highlighting wrong when item follows tabv8.1.2181
Problem: Highlighting wrong when item follows tab. Solution: Don't use syntax attribute when n_extra is non-zero. (Christian Brabandt, closes #5076)
Diffstat (limited to 'src/feature.h')
-rw-r--r--src/feature.h35
1 files changed, 19 insertions, 16 deletions
diff --git a/src/feature.h b/src/feature.h
index 04bb30cc6..4c0758d52 100644
--- a/src/feature.h
+++ b/src/feature.h
@@ -430,18 +430,6 @@
#endif
/*
- * +textprop Text properties and popup windows
- */
-#if defined(FEAT_EVAL) && defined(FEAT_SYN_HL)
-# define FEAT_TEXT_PROP
-#endif
-
-#if defined(FEAT_SYN_HL) && defined(FEAT_RELTIME)
-// Can limit syntax highlight time to 'redrawtime'.
-# define SYN_TIME_LIMIT 1
-#endif
-
-/*
* +spell spell checking
*
* Disabled for EBCDIC: * Doesn't work (SIGSEGV).
@@ -1119,10 +1107,6 @@
# define FEAT_ARP
#endif
-/*
- * +GUI_Athena To compile Vim with or without the GUI (gvim) you have
- * +GUI_Motif to edit the Makefile.
- */
/*
* +ole Win32 OLE automation: Use Makefile.ovc.
@@ -1138,6 +1122,8 @@
* +tcl TCL interface: "--enable-tclinterp"
* +netbeans_intg Netbeans integration
* +channel Inter process communication
+ * +GUI_Athena Athena GUI
+ * +GUI_Motif Motif GUI
*/
/*
@@ -1170,6 +1156,23 @@
#if defined(FEAT_TERMINAL) && !defined(CURSOR_SHAPE)
# define CURSOR_SHAPE
#endif
+#if defined(FEAT_TERMINAL) && !defined(FEAT_SYN_HL)
+// simplify the code a bit by enabling +syntax when +terminal is enabled
+# define FEAT_SYN_HL
+#endif
+
+/*
+ * +textprop Text properties and popup windows
+ */
+#if defined(FEAT_EVAL) && defined(FEAT_SYN_HL)
+# define FEAT_TEXT_PROP
+#endif
+
+#if defined(FEAT_SYN_HL) && defined(FEAT_RELTIME)
+// Can limit syntax highlight time to 'redrawtime'.
+# define SYN_TIME_LIMIT 1
+#endif
+
/*
* +signs Allow signs to be displayed to the left of text lines.