From ae46a19b8e2bafd7c3fc5cba99b9f430c8cf9b1c Mon Sep 17 00:00:00 2001 From: nicm Date: Wed, 20 Mar 2019 07:24:03 +0000 Subject: Ignore invalid styles rather than throwing away the whole format, this matches what we used to do. --- format-draw.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/format-draw.c b/format-draw.c index 84af1145..40ba27bf 100644 --- a/format-draw.c +++ b/format-draw.c @@ -583,7 +583,8 @@ format_draw(struct screen_write_ctx *octx, const struct grid_cell *base, if (style_parse(&sy, base, tmp) != 0) { log_debug("invalid style '%s'", tmp); free(tmp); - return; + cp = end + 1; + continue; } log_debug("style '%s' -> '%s'", tmp, style_tostring(&sy)); free(tmp); -- cgit