diff --git a/src/color.c b/src/color.c index 3ffbe3df..a04982cb 100644 --- a/src/color.c +++ b/src/color.c @@ -259,8 +259,8 @@ void check_the_multis(linestruct *line) if (!astart && !anend) continue; } else if (line->multidata[ink->id] == JUSTONTHIS) { - if (astart && anend && regexec(ink->start, line->data + endmatch.rm_eo, - 1, &startmatch, 0) != 0) + if (astart && anend && regexec(ink->start, line->data + startmatch.rm_eo + + endmatch.rm_eo, 1, &startmatch, 0) != 0) continue; } else if (line->multidata[ink->id] == STARTSHERE) { if (astart && !anend)