From a216cdaad59f62ec13f82fedb37e3bb06e9c19f4 Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Wed, 20 Mar 2019 07:24:04 +0000 Subject: Ignore invalid styles rather than throwing away the whole format, this matches what we used to do. --- usr.bin/tmux/format-draw.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'usr.bin') diff --git a/usr.bin/tmux/format-draw.c b/usr.bin/tmux/format-draw.c index ab275cd940b..51df9746a49 100644 --- a/usr.bin/tmux/format-draw.c +++ b/usr.bin/tmux/format-draw.c @@ -1,4 +1,4 @@ -/* $OpenBSD: format-draw.c,v 1.3 2019/03/20 07:13:02 nicm Exp $ */ +/* $OpenBSD: format-draw.c,v 1.4 2019/03/20 07:24:03 nicm Exp $ */ /* * Copyright (c) 2019 Nicholas Marriott @@ -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 v1.2.3