mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-03-29 07:58:01 -04:00
render: last_buf may point to a free:d buffer
So, store last buf's width/height separately
This commit is contained in:
parent
5812242405
commit
4d3251a93b
2 changed files with 23 additions and 9 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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue