mirror of
https://github.com/vim/vim.git
synced 2025-09-30 04:44:14 -04:00
patch 8.1.1082: "Conceal" match is mixed up with 'hlsearch' match.
Problem: "Conceal" match is mixed up with 'hlsearch' match. Solution: Check that a match is found, not a 'hlsearch' item. (Andy Massimino, closes #4073)
This commit is contained in:
@@ -4133,7 +4133,11 @@ win_line(
|
|||||||
shl->endcol = tmp_col;
|
shl->endcol = tmp_col;
|
||||||
shl->attr_cur = shl->attr;
|
shl->attr_cur = shl->attr;
|
||||||
#ifdef FEAT_CONCEAL
|
#ifdef FEAT_CONCEAL
|
||||||
if (cur != NULL && syn_name2id((char_u *)"Conceal")
|
// Match with the "Conceal" group results in hiding
|
||||||
|
// the match.
|
||||||
|
if (cur != NULL
|
||||||
|
&& shl != &search_hl
|
||||||
|
&& syn_name2id((char_u *)"Conceal")
|
||||||
== cur->hlg_id)
|
== cur->hlg_id)
|
||||||
{
|
{
|
||||||
has_match_conc =
|
has_match_conc =
|
||||||
|
@@ -775,6 +775,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
1082,
|
||||||
/**/
|
/**/
|
||||||
1081,
|
1081,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user