diff --git a/lexer/theme-lexer.l b/lexer/theme-lexer.l index c36df48b..e9b8e99f 100644 --- a/lexer/theme-lexer.l +++ b/lexer/theme-lexer.l @@ -808,7 +808,6 @@ if ( queue == NULL ) { } . { yytext[yyleng-1] = '\0'; - fprintf(stderr,"initial found: |%s|\n", yytext); return T_ERROR; }
. { diff --git a/source/rofi.c b/source/rofi.c index d1addf4a..bf320057 100644 --- a/source/rofi.c +++ b/source/rofi.c @@ -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);