mirror of
https://github.com/lbonn/rofi
synced 2024-11-15 08:37:17 +00:00
[Rofi] Don't try to parse commandline options using theme engine if theme parsing failed.
Issues: #1531
This commit is contained in:
parent
91f3200d8c
commit
dee9c526d3
2 changed files with 5 additions and 2 deletions
|
@ -808,7 +808,6 @@ if ( queue == NULL ) {
|
|||
}
|
||||
<INITIAL>. {
|
||||
yytext[yyleng-1] = '\0';
|
||||
fprintf(stderr,"initial found: |%s|\n", yytext);
|
||||
return T_ERROR;
|
||||
}
|
||||
<SECTION>. {
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue