commit 42385646731b526a74a7d37dca43f88201f4675b
parent 764ab96bdad7613436f19d969b8ae90a1a84fce9
Author: Benno Schulenberg <bensberg@telfort.nl>
Date: Tue, 16 Feb 2021 16:52:41 +0100
tweaks: rewrap two lines, for esthetics
Diffstat:
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/src/color.c b/src/color.c
@@ -316,15 +316,15 @@ void precalc_multicolorinfo(void)
/* When the line contains a start match, look for an end,
* and if found, mark all the lines that are affected. */
- while (regexec(ink->start, line->data + index, 1,
- &startmatch, (index == 0) ? 0 : REG_NOTBOL) == 0) {
+ while (regexec(ink->start, line->data + index, 1, &startmatch,
+ (index == 0) ? 0 : REG_NOTBOL) == 0) {
/* Begin looking for an end match after the start match. */
index += startmatch.rm_eo;
- /* If there is an end match on this line, mark the line,
+ /* If there is an end match on this same line, mark the line,
* but continue looking for other starts after it. */
- if (regexec(ink->end, line->data + index, 1,
- &endmatch, (index == 0) ? 0 : REG_NOTBOL) == 0) {
+ if (regexec(ink->end, line->data + index, 1, &endmatch,
+ (index == 0) ? 0 : REG_NOTBOL) == 0) {
line->multidata[ink->id] = JUSTONTHIS;
index += endmatch.rm_eo;