1
0
Fork 0
mirror of https://github.com/davatorium/rofi.git synced 2024-11-25 13:55:34 -05:00

[Rofi] Don't try to parse commandline options using theme engine if theme parsing failed.

Issues: #1531
This commit is contained in:
Dave Davenport 2021-11-28 17:08:09 +01:00
parent 91f3200d8c
commit dee9c526d3
2 changed files with 5 additions and 2 deletions

View file

@ -808,7 +808,6 @@ if ( queue == NULL ) {
}
<INITIAL>. {
yytext[yyleng-1] = '\0';
fprintf(stderr,"initial found: |%s|\n", yytext);
return T_ERROR;
}
<SECTION>. {

View file

@ -954,7 +954,11 @@ int main(int argc, char *argv[]) {
TICK_N("Parsed theme");
}
// Parse command line for settings, independent of other -no-config.
config_parse_cmd_options();
if (list_of_error_msgs == NULL) {
// Only call this when there are no errors.
// This might clear existing errors.
config_parse_cmd_options();
}
TICK_N("Load cmd config ");
parse_keys_abe(bindings);