forked from aniani/vim
patch 8.2.1056: wrong display when mixing match conceal and syntax conceal
Problem: Wrong display when mixing match conceal and syntax conceal. Solution: Adjust how conceal flags are used. (closes #6327, closes #6303)
This commit is contained in:
@@ -4419,9 +4419,8 @@ update_search_hl(
|
||||
while (cur != NULL || shl_flag == FALSE)
|
||||
{
|
||||
if (shl_flag == FALSE
|
||||
&& ((cur != NULL
|
||||
&& cur->priority > SEARCH_HL_PRIORITY)
|
||||
|| cur == NULL))
|
||||
&& (cur == NULL
|
||||
|| cur->priority > SEARCH_HL_PRIORITY))
|
||||
{
|
||||
shl = search_hl;
|
||||
shl_flag = TRUE;
|
||||
@@ -4453,7 +4452,7 @@ update_search_hl(
|
||||
*match_conc = cur->conceal_char;
|
||||
}
|
||||
else
|
||||
*has_match_conc = *match_conc = 0;
|
||||
*has_match_conc = 0;
|
||||
# endif
|
||||
}
|
||||
else if (col == shl->endcol)
|
||||
@@ -4503,9 +4502,8 @@ update_search_hl(
|
||||
while (cur != NULL || shl_flag == FALSE)
|
||||
{
|
||||
if (shl_flag == FALSE
|
||||
&& ((cur != NULL
|
||||
&& cur->priority > SEARCH_HL_PRIORITY)
|
||||
|| cur == NULL))
|
||||
&& (cur == NULL ||
|
||||
cur->priority > SEARCH_HL_PRIORITY))
|
||||
{
|
||||
shl = search_hl;
|
||||
shl_flag = TRUE;
|
||||
|
Reference in New Issue
Block a user