diff options
author | Bram Moolenaar <Bram@vim.org> | 2017-06-24 22:29:24 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2017-06-24 22:29:24 +0200 |
commit | cc0750dc6e878394ab0fd922b7ea4280918ae406 (patch) | |
tree | 1af2eff76db96f7f794b32735be3de2ab27505fe /src/syntax.c | |
parent | 4eb6531b03445b4d492bc52fea0b6dcd886583af (diff) | |
download | vim-git-cc0750dc6e878394ab0fd922b7ea4280918ae406.tar.gz |
patch 8.0.0672: third item of synconcealed() changes too oftenv8.0.0672
Problem: Third item of synconcealed() changes too often. (Dominique Pelle)
Solution: Reset the sequence number at the start of each line.
Diffstat (limited to 'src/syntax.c')
-rw-r--r-- | src/syntax.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/syntax.c b/src/syntax.c index 45d9bdac0..da2c87684 100644 --- a/src/syntax.c +++ b/src/syntax.c @@ -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) { |