summaryrefslogtreecommitdiffstats
path: root/screen.c
diff options
context:
space:
mode:
Diffstat (limited to 'screen.c')
-rw-r--r--screen.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/screen.c b/screen.c
index 5f6a39d3..129cfc2d 100644
--- a/screen.c
+++ b/screen.c
@@ -227,10 +227,8 @@ screen_resize_cursor(struct screen *s, u_int sx, u_int sy, int reflow,
{
u_int tcx, tcy;
- if (s->write_list != NULL) {
+ if (s->write_list != NULL)
screen_write_free_list(s);
- s->write_list = NULL;
- }
if (cx == NULL)
cx = &tcx;
@@ -270,6 +268,9 @@ screen_resize_cursor(struct screen *s, u_int sx, u_int sy, int reflow,
}
log_debug("%s: cursor finished at %u,%u = %u,%u", __func__, s->cx,
s->cy, *cx, *cy);
+
+ if (s->write_list != NULL)
+ screen_write_make_list(s);
}
/* Resize screen. */