aboutsummaryrefslogtreecommitdiffstats
path: root/src/pty-unix.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/pty-unix.c')
-rw-r--r--src/pty-unix.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pty-unix.c b/src/pty-unix.c
index 3332535..38afef1 100644
--- a/src/pty-unix.c
+++ b/src/pty-unix.c
@@ -99,8 +99,8 @@ void runes_pty_backend_set_window_size(RunesTerm *t)
{
struct winsize size;
- size.ws_row = t->scr.max.row;
- size.ws_col = t->scr.max.col;
+ size.ws_row = t->scr.grid->max.row;
+ size.ws_col = t->scr.grid->max.col;
size.ws_xpixel = t->xpixel;
size.ws_ypixel = t->ypixel;
ioctl(t->pty.master, TIOCSWINSZ, &size);