aboutsummaryrefslogtreecommitdiffstats
path: root/src/pty-unix.c
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2014-05-04 20:01:29 -0400
committerJesse Luehrs <doy@tozt.net>2014-05-04 20:01:29 -0400
commite9ff48e51a9df78375ce703ff3d4df1a362ac259 (patch)
treed4165155445d4fe741145243d1559d4cac6446d0 /src/pty-unix.c
parent270d383f9fa721bf910235625c77c6ce9245df7e (diff)
downloadrunes-e9ff48e51a9df78375ce703ff3d4df1a362ac259.tar.gz
runes-e9ff48e51a9df78375ce703ff3d4df1a362ac259.zip
refactor to make alternate screens work again
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);