X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=src%2Fconfig_parser.c;h=bbd59a4572b08c47eedd6245e637708e9542ce7d;hb=6241419c86602a999a4766c24edb7b884395e433;hp=1cdc7acba8cd745fd1ba4803dbb41233996d5061;hpb=62b0df06408029f86fdfe8d27a98f113943e7cc6;p=i3%2Fi3 diff --git a/src/config_parser.c b/src/config_parser.c index 1cdc7acb..bbd59a45 100644 --- a/src/config_parser.c +++ b/src/config_parser.c @@ -446,6 +446,16 @@ struct ConfigResult *parse_config(const char *input, struct context *context) { } } + if (strcmp(token->name, "line") == 0) { + while (*walk != '\0' && *walk != '\n' && *walk != '\r') + walk++; + next_state(token); + token_handled = true; + linecnt++; + walk++; + break; + } + if (strcmp(token->name, "end") == 0) { //printf("checking for end: *%s*\n", walk); if (*walk == '\0' || *walk == '\n' || *walk == '\r') { @@ -1060,7 +1070,7 @@ void parse_file(const char *f) { char *argv[] = { NULL, /* will be replaced by the executable path */ "-f", - config.font.pattern, + (config.font.pattern ? config.font.pattern : "fixed"), "-t", (context->has_errors ? "error" : "warning"), "-m",