diff src/syntax.c @ 2401:e7751177126b vim73

Add the synconcealed() function and use it for :TOhtml. (Benjamin Fritz)
author Bram Moolenaar <bram@vim.org>
date Sun, 25 Jul 2010 12:46:44 +0200
parents 0371401d9d33
children da067045878f
line wrap: on
line diff
--- a/src/syntax.c
+++ b/src/syntax.c
@@ -474,6 +474,10 @@ syntax_start(wp, lnum)
     int		dist;
     static int	changedtick = 0;	/* remember the last change ID */
 
+#ifdef FEAT_CONCEAL
+    current_sub_char = NUL;
+#endif
+
     /*
      * After switching buffers, invalidate current_state.
      * Also do this when a change was made, the current state may be invalid
@@ -1787,6 +1791,9 @@ get_syntax_attr(col, can_spell, keep_sta
 	current_id = 0;
 	current_trans_id = 0;
 #endif
+#ifdef FEAT_CONCEAL
+	current_flags = 0;
+#endif
 	return 0;
     }