aboutsummaryrefslogtreecommitdiff
path: root/terminal.h
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2019-11-01 23:48:07 +0000
committerDaniel Eklöf <daniel@ekloef.se>2019-11-01 23:48:07 +0000
commit4d3251a93b4ba309d573aca6ff397df44c4ff760 (patch)
treefa60d6ba839b64e022d00658d0d24dcf88918a20 /terminal.h
parentshm: purge unused buffers (diff)
render: last_buf may point to a free:d buffer
So, store last buf's width/height separately
Diffstat (limited to 'terminal.h')
-rw-r--r--terminal.h6
1 files changed, 5 insertions, 1 deletions
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;