+2015-08-01 Benno Schulenberg <bensberg@justemail.net>
+ * src/nano.c (precalc_multicolorinfo): Set each multiline-color
+ value instead of OR-ing it. This fixes Savannah bug #45640.
+
2015-07-29 Benno Schulenberg <bensberg@justemail.net>
* src/text.c (do_linter): When the linter is called in restricted mode
(possible when nano was built with --disable-speller), it is better to
if (regexec(tmpcolor->end, &fileptr->data[startx], 1, &endmatch,
(startx == 0) ? 0 : REG_NOTBOL) == 0) {
startx += endmatch.rm_eo;
- fileptr->multidata[tmpcolor->id] |= CSTARTENDHERE;
+ fileptr->multidata[tmpcolor->id] = CSTARTENDHERE;
#ifdef DEBUG
fprintf(stderr, "end found on this line\n");
#endif
#endif
/* We found it, we found it, la la la la la. Mark all
* the lines in between and the end properly. */
- fileptr->multidata[tmpcolor->id] |= CENDAFTER;
+ fileptr->multidata[tmpcolor->id] = CENDAFTER;
#ifdef DEBUG
fprintf(stderr, "marking line %ld as CENDAFTER\n", (long)fileptr->lineno);
#endif
#endif
}
alloc_multidata_if_needed(endptr);
- fileptr->multidata[tmpcolor->id] |= CBEGINBEFORE;
+ fileptr->multidata[tmpcolor->id] = CBEGINBEFORE;
#ifdef DEBUG
fprintf(stderr, "marking line %ld as CBEGINBEFORE\n", (long)fileptr->lineno);
#endif