summaryrefslogtreecommitdiff
path: root/src/highlight.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/highlight.c')
-rw-r--r--src/highlight.c12
1 files changed, 5 insertions, 7 deletions
diff --git a/src/highlight.c b/src/highlight.c
index dacce5c49..8c41c38fc 100644
--- a/src/highlight.c
+++ b/src/highlight.c
@@ -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;