commit | 17ec14b9a53ce66487bd456fdaba9d5ee290c2f4 | [log] [tgz] |
---|---|---|
author | Chris Allegretta <chrisa@asty.org> | Fri Feb 07 00:19:05 2003 +0000 |
committer | Chris Allegretta <chrisa@asty.org> | Fri Feb 07 00:19:05 2003 +0000 |
tree | f843c2d65cb55a56523b97e1e58ca6bd9b82318a | |
parent | a3daf3a25648f67838d6bf8bd45f5c98ca88d84d [diff] [blame] |
Better fix hopefully for color issue git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1430 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
diff --git a/rcfile.c b/rcfile.c index dade1c4..03f5dfe 100644 --- a/rcfile.c +++ b/rcfile.c
@@ -361,6 +361,10 @@ 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;