mirror of
https://github.com/neovim/neovim.git
synced 2025-10-07 02:16:31 +00:00
vim-patch:8.2.4918: conceal character from matchadd() displayed too many times
Problem: Conceal character from matchadd() displayed too many times.
Solution: Check the syntax flag. (closes vim/vim#10381, closes vim/vim#7268)
9830db6305
This commit is contained in:
@@ -3666,13 +3666,12 @@ static int win_line(win_T *wp, linenr_T lnum, int startrow, int endrow, bool noc
|
||||
}
|
||||
|
||||
if (wp->w_p_cole > 0
|
||||
&& (wp != curwin || lnum != wp->w_cursor.lnum
|
||||
|| conceal_cursor_line(wp))
|
||||
&& (wp != curwin || lnum != wp->w_cursor.lnum || conceal_cursor_line(wp))
|
||||
&& ((syntax_flags & HL_CONCEAL) != 0 || has_match_conc > 0 || decor_conceal > 0)
|
||||
&& !(lnum_in_visual_area
|
||||
&& vim_strchr(wp->w_p_cocu, 'v') == NULL)) {
|
||||
&& !(lnum_in_visual_area && vim_strchr(wp->w_p_cocu, 'v') == NULL)) {
|
||||
char_attr = conceal_attr;
|
||||
if ((prev_syntax_id != syntax_seqnr || has_match_conc > 1 || decor_conceal > 1)
|
||||
if (((prev_syntax_id != syntax_seqnr && (syntax_flags & HL_CONCEAL) != 0)
|
||||
|| has_match_conc > 1 || decor_conceal > 1)
|
||||
&& (syn_get_sub_char() != NUL
|
||||
|| (has_match_conc && match_conc)
|
||||
|| (decor_conceal && decor_state.conceal_char)
|
||||
|
Reference in New Issue
Block a user