aboutsummaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2019-07-05 06:53:48 +0000
committerDaniel Eklöf <daniel@ekloef.se>2019-07-05 06:55:02 +0000
commit8091f7c78103ddbaf165c3c5368b93ee5d0495a1 (patch)
treebe69da50d82810c3ef4710e44d6b4280bd64a18c /main.c
parentresize: cursor reset was off-by-one when cursor was outside new size (diff)
render: force a full redraw when we cannot reuse last buffer
Diffstat (limited to 'main.c')
-rw-r--r--main.c6
1 files changed, 5 insertions, 1 deletions
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;
}