Commit 3bb45ae0 authored by David Lawrence Ramsey's avatar David Lawrence Ramsey
Browse files

per Daniel Richard G.'s patch, in parse_rcfile(), add missing

ENABLE_COLOR #ifdef around the second check for a syntax with no color
commands, to fix compilation without color support


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3794 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
No related merge requests found
Showing with 7 additions and 0 deletions
+7 -0
......@@ -109,6 +109,11 @@ CVS code -
- nano.h:
- Remove the manual disabling of color support if regex.h isn't
found, as configure.ac now handles that. (DLR)
- rcfile.c:
parse_rcfile()
- Add missing ENABLE_COLOR #ifdef around the second check for a
syntax with no color commands, to fix compilation without
color support. (Daniel Richard G.)
- search.c:
replace_regexp()
- Remove unnecessary casting of c to int. (DLR)
......
......@@ -834,9 +834,11 @@ void parse_rcfile(FILE *rcstream
rcfile_error(N_("Unknown flag \"%s\""), option);
}
#ifdef ENABLE_COLOR
if (endsyntax != NULL && endcolor == NULL)
rcfile_error(N_("Syntax \"%s\" has no color commands"),
endsyntax->desc);
#endif
free(buf);
fclose(rcstream);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment