summaryrefslogtreecommitdiffstats
path: root/screen.c
diff options
context:
space:
mode:
authorThomas Adam <thomas@xteddy.org>2020-04-18 20:01:29 +0100
committerThomas Adam <thomas@xteddy.org>2020-04-18 20:01:29 +0100
commit7da5418758eab32bd247826e512bba3e413936d6 (patch)
tree66cc6d6ba1b901234326fa934713a03ce2bc7da5 /screen.c
parent2b83ee5557136125452581e99715e4322ff58cee (diff)
parent100db552d16164648e269aeb45fd87f7a39d9c11 (diff)
Merge branch 'obsd-master'
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 68cfcf8c..a1dc52c8 100644
--- a/screen.c
+++ b/screen.c
@@ -226,10 +226,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;
@@ -269,6 +267,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. */