commit 0e94575c6bdd2fcee43996654a75ce7687e29d78
parent 27cc3117e228ce1f8d790a8cc6858bdff0fdca12
Author: Benno Schulenberg <bensberg@telfort.nl>
Date: Sat, 15 Jun 2019 12:17:33 +0200
rcfile: check for missing color commands only when a syntax is still open
This fixes https://savannah.gnu.org/bugs/?56497.
Bug existed since commit 7028adf2 from two days ago.
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/rcfile.c b/src/rcfile.c
@@ -1281,7 +1281,7 @@ void parse_rcfile(FILE *rcstream, bool just_syntax, bool intros_only)
}
#ifdef ENABLE_COLOR
- if (intros_only && !seen_color_command)
+ if (opensyntax && intros_only && !seen_color_command)
rcfile_error(N_("Syntax \"%s\" has no color commands"),
live_syntax->name);