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
parent
27cc3117e2
commit
0e94575c6b
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue