summaryrefslogtreecommitdiffstats
path: root/format-draw.c
diff options
context:
space:
mode:
authornicm <nicm>2019-03-20 07:24:03 +0000
committernicm <nicm>2019-03-20 07:24:03 +0000
commitae46a19b8e2bafd7c3fc5cba99b9f430c8cf9b1c (patch)
treefbd6ca7948598103a05966b42131993edc09d4c3 /format-draw.c
parent3b959c05ffe2173bf0fb22ca0d3dd6461d12f173 (diff)
Ignore invalid styles rather than throwing away the whole format, this
matches what we used to do.
Diffstat (limited to 'format-draw.c')
-rw-r--r--format-draw.c3
1 files changed, 2 insertions, 1 deletions
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);