Mercurial > vim
diff src/syntax.c @ 11579:52e3a77c097b v8.0.0672
patch 8.0.0672: third item of synconcealed() changes too often
commit https://github.com/vim/vim/commit/cc0750dc6e878394ab0fd922b7ea4280918ae406
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Jun 24 22:29:24 2017 +0200
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.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sat, 24 Jun 2017 22:30:03 +0200 |
parents | 3bc4fb330d07 |
children | 2298fda621d3 |
line wrap: on
line diff
--- 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) {