diff options
author | nate <nateozemon@gmail.com> | 2017-12-04 07:36:03 -0800 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2018-02-01 02:12:21 +0100 |
commit | dfcd09dc225d7500a3df316193151cafe8bbb644 (patch) | |
tree | b82a739d5587aca3a982fee37c1b792ad91c5e93 /src/nvim/syntax.c | |
parent | 3a5721e91ba890718319213154ba6964c9dca4d2 (diff) | |
download | rneovim-dfcd09dc225d7500a3df316193151cafe8bbb644.tar.gz rneovim-dfcd09dc225d7500a3df316193151cafe8bbb644.tar.bz2 rneovim-dfcd09dc225d7500a3df316193151cafe8bbb644.zip |
vim-patch:8.0.0672: synconcealed() changes too often #7887
Problem: Third item of synconcealed() changes too often. (Dominique Pelle)
Solution: Reset the sequence number at the start of each line.
https://github.com/vim/vim/commit/cc0750dc6e878394ab0fd922b7ea4280918ae406
closes #7589
Diffstat (limited to 'src/nvim/syntax.c')
-rw-r--r-- | src/nvim/syntax.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/nvim/syntax.c b/src/nvim/syntax.c index 05bc6c9d96..40479e05dd 100644 --- a/src/nvim/syntax.c +++ b/src/nvim/syntax.c @@ -881,7 +881,8 @@ static void syn_start_line(void) } next_match_idx = -1; - ++current_line_id; + current_line_id++; + next_seqnr = 1; } /* @@ -1599,6 +1600,7 @@ get_syntax_attr ( current_id = 0; current_trans_id = 0; current_flags = 0; + current_seqnr = 0; return 0; } @@ -2042,6 +2044,7 @@ syn_current_attr ( current_id = 0; current_trans_id = 0; current_flags = 0; + current_seqnr = 0; if (cur_si != NULL) { for (int idx = current_state.ga_len - 1; idx >= 0; --idx) { sip = &CUR_STATE(idx); |