Commit 8fbadecf authored by Benno Schulenberg's avatar Benno Schulenberg
Browse files

tweaks: adjust whitespace after preceding changes

Showing with 16 additions and 15 deletions
+16 -15
...@@ -303,7 +303,7 @@ void check_the_multis(filestruct *line) ...@@ -303,7 +303,7 @@ void check_the_multis(filestruct *line)
return; return;
for (ink = openfile->colorstrings; ink != NULL; ink = ink->next) { for (ink = openfile->colorstrings; ink != NULL; ink = ink->next) {
/* If it's not a multi-line regex, amscray. */ /* If it's not a multiline regex, skip. */
if (ink->end == NULL) if (ink->end == NULL)
continue; continue;
...@@ -312,22 +312,23 @@ void check_the_multis(filestruct *line) ...@@ -312,22 +312,23 @@ void check_the_multis(filestruct *line)
astart = regexec(ink->start, line->data, 1, &startmatch, 0); astart = regexec(ink->start, line->data, 1, &startmatch, 0);
anend = regexec(ink->end, line->data, 1, &endmatch, 0); anend = regexec(ink->end, line->data, 1, &endmatch, 0);
/* Check whether the multidata still matches the current situation. */ /* Check whether the multidata still matches the current situation. */
if (line->multidata[ink->id] == CNONE || if (line->multidata[ink->id] == CNONE ||
line->multidata[ink->id] == CWHOLELINE) { line->multidata[ink->id] == CWHOLELINE) {
if (!astart && !anend) if (!astart && !anend)
continue; continue;
} else if (line->multidata[ink->id] == CSTARTENDHERE) { } else if (line->multidata[ink->id] == CSTARTENDHERE) {
if (astart && anend && startmatch.rm_so < endmatch.rm_so) if (astart && anend && startmatch.rm_so < endmatch.rm_so)
continue; continue;
} else if (line->multidata[ink->id] == CBEGINBEFORE) { } else if (line->multidata[ink->id] == CBEGINBEFORE) {
if (!astart && anend) if (!astart && anend)
continue; continue;
} else if (line->multidata[ink->id] == CENDAFTER) { } else if (line->multidata[ink->id] == CENDAFTER) {
if (astart && !anend) if (astart && !anend)
continue; continue;
} }
/* There is a mismatch, so something changed: repaint. */
refresh_needed = TRUE; refresh_needed = TRUE;
return; return;
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment