[PATCH] rcfile.c: always keep entire list of valid keywords
2009-01-03 12:57:02 GMT
I like to use one .nanorc file on all my systems, but many may have
different compile time settings. This means that the same .nanorc file
cannot be easily used without encountering:
Error in /home/vapier/.nanorc on line 17: Unknown flag "speller"
Press Enter to continue starting nano.
I think it makes more sense to have the valid keyword list always be the
same and only control whether the keyword actually results in behavior
change via ifdefs.
Signed-off-by: Mike Frysinger <vapier <at> gentoo.org>
---
src/rcfile.c | 20 --------------------
1 files changed, 0 insertions(+), 20 deletions(-)
diff --git a/src/rcfile.c b/src/rcfile.c
index bd04169..5ac61cd 100644
--- a/src/rcfile.c
+++ b/src/rcfile.c
<at> <at> -34,47 +34,28 <at> <at>
static const rcoption rcopts[] = {
{"boldtext", BOLD_TEXT},
-#ifndef DISABLE_JUSTIFY
{"brackets", 0},
-#endif
{"const", CONST_UPDATE},
-#ifndef DISABLE_WRAPJUSTIFY
{"fill", 0},
(Continue reading)
RSS Feed