From 796eb522ac6534510b22c34296cbd172f8fab3ae Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Fri, 4 Dec 2009 11:01:29 +0000 Subject: [PATCH] vte is buggy and doesn't home the cursor after changing the scroll region. Several people are hitting this, so add a workaround. --- tty.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/tty.c b/tty.c index b1026a97..32ee197c 100644 --- a/tty.c +++ b/tty.c @@ -1006,10 +1006,8 @@ tty_region(struct tty *tty, u_int rupper, u_int rlower) if (tty->cx >= tty->sx) tty_cursor(tty, 0, tty->cy); - tty->cx = 0; - tty->cy = 0; - tty_putcode2(tty, TTYC_CSR, tty->rupper, tty->rlower); + tty_cursor(tty, 0, 0); } /* Move cursor inside pane. */