the reserved "default" syntax from being handled correctly
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3592
35c25a1d-7b9e-4130-9fde-
d3aeb78583b8
- Rename variable editline to line, for consistency. (DLR)
- Change variable i from an int to a size_t in order to match
selected, which it's compared against. (DLR)
+- color.c:
+ color_update()
+ - Fix incorrect setting of defcolor, which prevented the
+ reserved "default" syntax from being handled correctly. (DLR)
- cut.c:
cut_to_eof()
- New function, containing the main functionality of
* syntax names elsewhere.) Skip over it here, but keep
* track of its color regexes. */
if (strcmp(tmpsyntax->desc, "default") == 0) {
- defcolor = syntaxes->color;
+ defcolor = tmpsyntax->color;
continue;
}