diff options
author | Nicholas Marriott <nicm@cvs.openbsd.org> | 2019-03-20 07:24:04 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@cvs.openbsd.org> | 2019-03-20 07:24:04 +0000 |
commit | a216cdaad59f62ec13f82fedb37e3bb06e9c19f4 (patch) | |
tree | 93e04576fd652902b4e643c0650a128a357de768 /usr.bin/tmux | |
parent | 1260bce0a540ca0259135dabb5e97bb707385c6d (diff) |
Ignore invalid styles rather than throwing away the whole format, this
matches what we used to do.
Diffstat (limited to 'usr.bin/tmux')
-rw-r--r-- | usr.bin/tmux/format-draw.c | 5 |
1 files changed, 3 insertions, 2 deletions
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 <nicholas.marriott@gmail.com> @@ -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); |