render: don't try to render glyph for empty cell(s)

This commit is contained in:
Daniel Eklöf 2019-06-29 20:50:40 +02:00
parent 28f7ab5130
commit e2bdda8c61
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

3
main.c
View file

@ -132,6 +132,9 @@ grid_render_update(struct context *c, struct buffer *buf, const struct damage *d
cairo_rectangle(buf->cairo, x, y, width, height);
cairo_fill(buf->cairo);
if (cell->c[0] == '\0' || cell->c[0] == ' ')
continue;
if (cell->attrs.conceal)
continue;