2014-05-15 Benno Schulenberg <bensberg@justemail.net>
* doc/syntax/c.nanorc: Improve the magic regex, plus tweaks.
+ * src/color.c (color_update): Adjust comment, and be clear.
2014-05-14 Benno Schulenberg <bensberg@justemail.net>
* src/winio.c (edit_draw): Poke a non-breaking space into the last
/* If we didn't specify a syntax override string, or if we did and
* there was no syntax by that name, get the syntax based on the
- * file extension, then try magic, and then look in the header. */
+ * file extension, then try the headerline, and then try magic. */
if (openfile->colorstrings == NULL) {
for (tmpsyntax = syntaxes; tmpsyntax != NULL;
tmpsyntax = tmpsyntax->next) {
if (not_compiled)
nfreeregex(&e->ext);
}
- if (openfile->syntax)
+ if (openfile->syntax != NULL)
break;
}
if (stat(openfile->filename, &fileinfo) == 0)