* nano.spec.in, doc/faq.html, doc/texinfo/nano.texi - Remove
vestiges of the obsolete '--enable-all' configure flag.
* src/rcfile.c - Fix compilation with --disable-color.
+ * src/rcfile.c - Allow (un)binding keys when colour is disabled.
2014-03-26 Mike Frysinger <vapier@gentoo.org>.
* configure.ac - Clean up most of the --with/--enable flags:
}
#endif /* HAVE_LIBMAGIC */
}
+#endif /* ENABLE_COLOR */
int check_bad_binding(sc *s)
}
+#ifdef ENABLE_COLOR
/* Read and parse additional syntax files. */
void parse_include(char *ptr)
{
endsyntax->desc);
parse_syntax(ptr);
}
- else if (strcasecmp(keyword, "magic") == 0) {
+ else if (strcasecmp(keyword, "magic") == 0)
parse_magictype(ptr);
- } else if (strcasecmp(keyword, "header") == 0)
+ else if (strcasecmp(keyword, "header") == 0)
parse_headers(ptr);
else if (strcasecmp(keyword, "color") == 0)
parse_colors(ptr, FALSE);
else if (strcasecmp(keyword, "icolor") == 0)
parse_colors(ptr, TRUE);
+ else if (strcasecmp(keyword, "linter") == 0)
+ parse_linter(ptr);
+#endif /* ENABLE_COLOR */
else if (strcasecmp(keyword, "bind") == 0)
parse_keybinding(ptr);
else if (strcasecmp(keyword, "unbind") == 0)
parse_unbinding(ptr);
- else if (strcasecmp(keyword, "linter") == 0) {
- parse_linter(ptr);
- }
-#endif /* ENABLE_COLOR */
else
rcfile_error(N_("Command \"%s\" not understood"), keyword);