mirror of https://github.com/davatorium/rofi.git
[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
|
@ -808,7 +808,6 @@ if ( queue == NULL ) {
|
||||||
}
|
}
|
||||||
<INITIAL>. {
|
<INITIAL>. {
|
||||||
yytext[yyleng-1] = '\0';
|
yytext[yyleng-1] = '\0';
|
||||||
fprintf(stderr,"initial found: |%s|\n", yytext);
|
|
||||||
return T_ERROR;
|
return T_ERROR;
|
||||||
}
|
}
|
||||||
<SECTION>. {
|
<SECTION>. {
|
||||||
|
|
|
@ -954,7 +954,11 @@ int main(int argc, char *argv[]) {
|
||||||
TICK_N("Parsed theme");
|
TICK_N("Parsed theme");
|
||||||
}
|
}
|
||||||
// Parse command line for settings, independent of other -no-config.
|
// Parse command line for settings, independent of other -no-config.
|
||||||
|
if (list_of_error_msgs == NULL) {
|
||||||
|
// Only call this when there are no errors.
|
||||||
|
// This might clear existing errors.
|
||||||
config_parse_cmd_options();
|
config_parse_cmd_options();
|
||||||
|
}
|
||||||
TICK_N("Load cmd config ");
|
TICK_N("Load cmd config ");
|
||||||
|
|
||||||
parse_keys_abe(bindings);
|
parse_keys_abe(bindings);
|
||||||
|
|
Loading…
Reference in New Issue