commit 8fbadecf0a332dc2c4382b4a4d3eb86d98e0bce9
parent a6605dce00f244cfe346bf8761610c0b1e08b369
Author: Benno Schulenberg <bensberg@justemail.net>
Date: Mon, 13 Feb 2017 19:31:36 +0100
tweaks: adjust whitespace after preceding changes
Diffstat:
1 file changed, 16 insertions(+), 15 deletions(-)
diff --git a/src/color.c b/src/color.c
@@ -303,7 +303,7 @@ void check_the_multis(filestruct *line)
return;
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)
continue;
@@ -312,22 +312,23 @@ void check_the_multis(filestruct *line)
astart = regexec(ink->start, line->data, 1, &startmatch, 0);
anend = regexec(ink->end, line->data, 1, &endmatch, 0);
- /* Check whether the multidata still matches the current situation. */
- if (line->multidata[ink->id] == CNONE ||
+ /* Check whether the multidata still matches the current situation. */
+ if (line->multidata[ink->id] == CNONE ||
line->multidata[ink->id] == CWHOLELINE) {
- if (!astart && !anend)
- continue;
- } else if (line->multidata[ink->id] == CSTARTENDHERE) {
- if (astart && anend && startmatch.rm_so < endmatch.rm_so)
- continue;
- } else if (line->multidata[ink->id] == CBEGINBEFORE) {
- if (!astart && anend)
- continue;
- } else if (line->multidata[ink->id] == CENDAFTER) {
- if (astart && !anend)
- continue;
- }
+ if (!astart && !anend)
+ continue;
+ } else if (line->multidata[ink->id] == CSTARTENDHERE) {
+ if (astart && anend && startmatch.rm_so < endmatch.rm_so)
+ continue;
+ } else if (line->multidata[ink->id] == CBEGINBEFORE) {
+ if (!astart && anend)
+ continue;
+ } else if (line->multidata[ink->id] == CENDAFTER) {
+ if (astart && !anend)
+ continue;
+ }
+ /* There is a mismatch, so something changed: repaint. */
refresh_needed = TRUE;
return;
}