Ignore invalid styles rather than throwing away the whole format, this

matches what we used to do.
This commit is contained in:
nicm 2019-03-20 07:24:03 +00:00
parent 3b959c05ff
commit ae46a19b8e

View File

@ -583,7 +583,8 @@ format_draw(struct screen_write_ctx *octx, const struct grid_cell *base,
if (style_parse(&sy, base, tmp) != 0) { if (style_parse(&sy, base, tmp) != 0) {
log_debug("invalid style '%s'", tmp); log_debug("invalid style '%s'", tmp);
free(tmp); free(tmp);
return; cp = end + 1;
continue;
} }
log_debug("style '%s' -> '%s'", tmp, style_tostring(&sy)); log_debug("style '%s' -> '%s'", tmp, style_tostring(&sy));
free(tmp); free(tmp);