commit 101987f5c6d72135449c5f6a7780e57a820c4973
parent ad451933c6914a592417e1cb10cde0964d114001
Author: Benno Schulenberg <bensberg@telfort.nl>
Date: Sat, 12 Oct 2019 11:14:56 +0200
build: fix compilation when configured with --disable-color
Diffstat:
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/src/rcfile.c b/src/rcfile.c
@@ -1001,7 +1001,9 @@ void parse_rcfile(FILE *rcstream, bool just_syntax, bool intros_only)
while ((len = getline(&buffer, &size, rcstream)) > 0) {
char *ptr, *keyword, *option;
+#ifdef ENABLE_COLOR
bool drop_open = FALSE;
+#endif
int set = 0;
size_t i;
@@ -1134,9 +1136,10 @@ void parse_rcfile(FILE *rcstream, bool just_syntax, bool intros_only)
else if (intros_only)
jot_error(N_("Command \"%s\" not understood"), keyword);
+#ifdef ENABLE_COLOR
if (drop_open)
opensyntax = FALSE;
-
+#endif
if (set == 0)
continue;