mirror of
https://github.com/vim/vim.git
synced 2025-09-23 03:43:49 -04:00
Add the synconcealed() function and use it for :TOhtml. (Benjamin Fritz)
This commit is contained in:
@@ -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
|
||||
@@ -1786,6 +1790,9 @@ get_syntax_attr(col, can_spell, keep_state)
|
||||
#ifdef FEAT_EVAL
|
||||
current_id = 0;
|
||||
current_trans_id = 0;
|
||||
#endif
|
||||
#ifdef FEAT_CONCEAL
|
||||
current_flags = 0;
|
||||
#endif
|
||||
return 0;
|
||||
}
|
||||
|
Reference in New Issue
Block a user