mirror of
https://github.com/tmux/tmux.git
synced 2024-12-13 01:48:47 +00:00
Bit more logging to show drawing errors.
This commit is contained in:
parent
8b74e959ef
commit
3b959c05ff
@ -527,6 +527,7 @@ format_draw(struct screen_write_ctx *octx, const struct grid_cell *base,
|
||||
|
||||
style_set(&sy, base);
|
||||
TAILQ_INIT(&frs);
|
||||
log_debug("%s: %s", __func__, expanded);
|
||||
|
||||
/*
|
||||
* We build three screens for left, right, centre alignment, one for
|
||||
@ -574,10 +575,13 @@ format_draw(struct screen_write_ctx *octx, const struct grid_cell *base,
|
||||
|
||||
/* This is a style. Work out where the end is and parse it. */
|
||||
end = format_skip(cp + 2, "]");
|
||||
if (end == NULL)
|
||||
if (end == NULL) {
|
||||
log_debug("no terminating ] at '%s'", cp + 2);
|
||||
return;
|
||||
}
|
||||
tmp = xstrndup(cp + 2, end - (cp + 2));
|
||||
if (style_parse(&sy, base, tmp) != 0) {
|
||||
log_debug("invalid style '%s'", tmp);
|
||||
free(tmp);
|
||||
return;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user