0
0
mirror of https://github.com/vim/vim.git synced 2025-09-24 03:44:06 -04:00

patch 8.0.0672: third item of synconcealed() changes too often

Problem:    Third item of synconcealed() changes too often. (Dominique Pelle)
Solution:   Reset the sequence number at the start of each line.
This commit is contained in:
Bram Moolenaar
2017-06-24 22:29:24 +02:00
parent 4eb6531b03
commit cc0750dc6e
4 changed files with 26 additions and 12 deletions

View File

@@ -1061,6 +1061,7 @@ syn_start_line(void)
next_match_idx = -1;
++current_line_id;
next_seqnr = 1;
}
/*
@@ -1857,6 +1858,7 @@ get_syntax_attr(
#endif
#ifdef FEAT_CONCEAL
current_flags = 0;
current_seqnr = 0;
#endif
return 0;
}
@@ -2346,6 +2348,7 @@ syn_current_attr(
#endif
#ifdef FEAT_CONCEAL
current_flags = 0;
current_seqnr = 0;
#endif
if (cur_si != NULL)
{