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.
master
Benno Schulenberg 2019-06-15 12:17:33 +02:00
parent 27cc3117e2
commit 0e94575c6b
1 changed files with 1 additions and 1 deletions

View File

@ -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);