colortoint()
- Don't bomb after invalid color and print bad color name
(David Benbennick).
- - And reset mcolor to -1.
+ colortoint, parse_colors()
+ - Don't add strings with invalid fg colors at all.
- nano.1, nano.1.html:
- Add initialization file comments, change some options from
bracketed to underlined to emphasize that they are not
fg = colortoint(fgstr, &bright);
+ /* Don't try and parse screwed up fg colors */
+ if (fg == -1)
+ return;
+
if (syntaxes == NULL) {
rcfile_error(_("Cannot add a color directive without a syntax line"));
return;