diff options
Diffstat (limited to 'src/pty-unix.c')
-rw-r--r-- | src/pty-unix.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/pty-unix.c b/src/pty-unix.c index 0a4dc8b..c969394 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->rows; - size.ws_col = t->cols; + size.ws_row = t->scr.max.row; + size.ws_col = t->scr.max.col; size.ws_xpixel = t->xpixel; size.ws_ypixel = t->ypixel; ioctl(t->pty.master, TIOCSWINSZ, &size); @@ -144,7 +144,7 @@ static void runes_pty_backend_got_data(uv_work_t *req, int status) UNUSED(status); if (t->readlen > 0) { - runes_parser_process_string( + runes_screen_process_string( t, t->readbuf, t->readlen + t->remaininglen); uv_queue_work( t->loop, req, runes_pty_backend_read, runes_pty_backend_got_data); |