mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-05 04:06:08 -05:00
resize: bug: we're not in alt screen mode at startup
When we start up, the cells pointer, *and* the alt screen pointer are both NULL. Hence we incorrectly decided we were initially in alt screen mode.
This commit is contained in:
parent
de7dcf1a5c
commit
c0a9f9e6b2
1 changed files with 2 additions and 1 deletions
3
main.c
3
main.c
|
|
@ -355,7 +355,8 @@ resize(struct context *c, int width, int height)
|
|||
if (width == c->width && height == c->height)
|
||||
return;
|
||||
|
||||
bool alt_screen_active = c->term.grid.cells == c->term.grid.alt_grid;
|
||||
bool alt_screen_active
|
||||
= c->term.grid.cells != NULL && c->term.grid.cells == c->term.grid.alt_grid;
|
||||
|
||||
c->width = width;
|
||||
c->height = height;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue