render: force a full redraw when we cannot reuse last buffer

This commit is contained in:
Daniel Eklöf 2019-07-05 08:53:48 +02:00
parent 4a35aa9724
commit 8091f7c781
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

6
main.c
View file

@ -415,8 +415,12 @@ grid_render(struct context *c)
static struct buffer *last_buf = NULL;
if (last_buf != buf) {
if (last_buf != NULL)
if (last_buf != NULL) {
LOG_WARN("new buffer");
/* Force a full refresh */
term_damage_all(&c->term);
}
last_buf = buf;
}