summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNicholas Marriott <nicholas.marriott@gmail.com>2019-12-09 15:41:56 +0000
committerNicholas Marriott <nicholas.marriott@gmail.com>2019-12-09 15:41:56 +0000
commitcf071ffecd5a0d33008fd0a8b66a22f6855c7a8d (patch)
tree3d68f3a332b88dff0832d4ea79c99cfeb6c3fc12
parent2006b7a5631787a7086c6bae364e62d0a0b5948a (diff)
Remove images when reflow happens.
-rw-r--r--screen.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/screen.c b/screen.c
index 6ecb4d97..afb9415b 100644
--- a/screen.c
+++ b/screen.c
@@ -225,8 +225,10 @@ screen_resize(struct screen *s, u_int sx, u_int sy, int reflow)
if (sy != screen_size_y(s))
screen_resize_y(s, sy);
- if (reflow)
+ if (reflow) {
+ image_free_all(s);
screen_reflow(s, sx);
+ }
}
static void