mirror of
https://github.com/tmux/tmux.git
synced 2024-12-13 10:08:47 +00:00
Ignore invalid styles rather than throwing away the whole format, this
matches what we used to do.
This commit is contained in:
parent
3b959c05ff
commit
ae46a19b8e
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user