summaryrefslogtreecommitdiffstats
path: root/screen.c
diff options
context:
space:
mode:
authorThomas Adam <thomas@xteddy.org>2020-04-18 18:01:28 +0100
committerThomas Adam <thomas@xteddy.org>2020-04-18 18:01:28 +0100
commit2b83ee5557136125452581e99715e4322ff58cee (patch)
tree5b6b9caa621e4b6e79b1f2cbcbeb073ce7ee5747 /screen.c
parent2ccf15e5d8611d8125b81dac1fb56a2696fecee4 (diff)
parentdeffef6f1378db4986941dd9d83ba61f11142cd8 (diff)
Merge branch 'obsd-master'
Diffstat (limited to 'screen.c')
-rw-r--r--screen.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/screen.c b/screen.c
index 373d18c6..68cfcf8c 100644
--- a/screen.c
+++ b/screen.c
@@ -84,6 +84,8 @@ screen_init(struct screen *s, u_int sx, u_int sy, u_int hlimit)
s->tabs = NULL;
s->sel = NULL;
+ s->write_list = NULL;
+
screen_reinit(s);
}
@@ -121,6 +123,9 @@ screen_free(struct screen *s)
free(s->title);
free(s->ccolour);
+ if (s->write_list != NULL)
+ screen_write_free_list(s);
+
if (s->saved_grid != NULL)
grid_destroy(s->saved_grid);
grid_destroy(s->grid);
@@ -221,6 +226,11 @@ screen_resize_cursor(struct screen *s, u_int sx, u_int sy, int reflow,
{
u_int tcx, tcy;
+ if (s->write_list != NULL) {
+ screen_write_free_list(s);
+ s->write_list = NULL;
+ }
+
if (cx == NULL)
cx = &tcx;
*cx = s->cx;