commit 414a1ecc8d91304fa988ba2a63705213a346998b
parent e0bdf671b85713221fa06804cb24f3383a7cfc09
Author: Benno Schulenberg <bensberg@justemail.net>
Date: Sat, 21 Jan 2017 18:03:19 +0100
tweaks: and rename another variable, to keep in style
Diffstat:
1 file changed, 9 insertions(+), 9 deletions(-)
diff --git a/src/color.c b/src/color.c
@@ -398,7 +398,7 @@ void precalc_multicolorinfo(void)
{
const colortype *ink;
regmatch_t startmatch, endmatch;
- filestruct *line, *endptr;
+ filestruct *line, *tailline;
if (openfile->colorstrings == NULL || ISSET(NO_COLOR_SYNTAX))
return;
@@ -443,28 +443,28 @@ void precalc_multicolorinfo(void)
}
/* Look for an end match on later lines. */
- endptr = line->next;
+ tailline = line->next;
- while (endptr != NULL) {
- if (regexec(ink->end, endptr->data, 1, &endmatch, 0) == 0)
+ while (tailline != NULL) {
+ if (regexec(ink->end, tailline->data, 1, &endmatch, 0) == 0)
break;
- endptr = endptr->next;
+ tailline = tailline->next;
}
- if (endptr == NULL)
+ if (tailline == NULL)
break;
/* We found it, we found it, la la la la la. Mark all
* the lines in between and the end properly. */
line->multidata[ink->id] = CENDAFTER;
- for (line = line->next; line != endptr; line = line->next) {
+ for (line = line->next; line != tailline; line = line->next) {
alloc_multidata_if_needed(line);
line->multidata[ink->id] = CWHOLELINE;
}
- alloc_multidata_if_needed(endptr);
- line->multidata[ink->id] = CBEGINBEFORE;
+ alloc_multidata_if_needed(tailline);
+ tailline->multidata[ink->id] = CBEGINBEFORE;
/* Begin looking for a new start after the end match. */
index = endmatch.rm_eo;