From 4d3251a93b4ba309d573aca6ff397df44c4ff760 Mon Sep 17 00:00:00 2001 From: Daniel Eklöf Date: Sat, 2 Nov 2019 00:48:07 +0100 Subject: render: last_buf may point to a free:d buffer So, store last buf's width/height separately --- terminal.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'terminal.h') diff --git a/terminal.h b/terminal.h index 11571519..4962aae4 100644 --- a/terminal.h +++ b/terminal.h @@ -276,7 +276,11 @@ struct terminal { struct cell *cell; /* For easy access to content */ } last_cursor; - struct buffer *last_buf; /* Buffer we rendered to last time */ + struct { + struct buffer *buf; /* Buffer we rendered to last time */ + int width; + int height; + } last_shm; bool was_flashing; /* Flash was active last time we rendered */ bool was_searching; } render; -- cgit v1.3