diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2019-11-01 23:48:07 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2019-11-01 23:48:07 +0000 |
| commit | 4d3251a93b4ba309d573aca6ff397df44c4ff760 (patch) | |
| tree | fa60d6ba839b64e022d00658d0d24dcf88918a20 /terminal.h | |
| parent | shm: 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.h | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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; |
