now handled elsewhere; also clarify an error message in parse_colors()
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2623
35c25a1d-7b9e-4130-9fde-
d3aeb78583b8
- Disable extended output processing as well as extended input
processing, and rename to disable_extended_io(). (DLR)
- rcfile.c:
+ color_to_int()
+ - Since colorname's being NULL is handled elsewhere now, assert
+ that it isn't NULL at the beginning of the function. (DLR)
parse_colors()
- Properly parse a background color without a foreground color.
(DLR)
{
int mcolor = -1;
- if (colorname == NULL) {
- rcfile_error(N_("Missing color name"));
- return -1;
- }
-
- assert(bright != NULL);
+ assert(colorname != NULL && bright != NULL);
if (strncasecmp(colorname, "bright", 6) == 0) {
*bright = TRUE;
}
if (*ptr == '\0') {
- rcfile_error(
- N_("Cannot add a color directive without a regex string"));
+ rcfile_error(N_("Missing regex string"));
return;
}