From 8091f7c78103ddbaf165c3c5368b93ee5d0495a1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Ekl=C3=B6f?= Date: Fri, 5 Jul 2019 08:53:48 +0200 Subject: [PATCH] render: force a full redraw when we cannot reuse last buffer --- main.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/main.c b/main.c index 6fa2ed87..8e761812 100644 --- a/main.c +++ b/main.c @@ -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; }