diff options
author | Nicholas Marriott <nicm@openbsd.org> | 2009-12-04 11:01:29 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@openbsd.org> | 2009-12-04 11:01:29 +0000 |
commit | 796eb522ac6534510b22c34296cbd172f8fab3ae (patch) | |
tree | 443acdae0b3021fe20f6003b568b762f9b7f2aac /tty.c | |
parent | e755475475a170237d617e7d15af404124eb69c4 (diff) | |
download | rtmux-796eb522ac6534510b22c34296cbd172f8fab3ae.tar.gz rtmux-796eb522ac6534510b22c34296cbd172f8fab3ae.tar.bz2 rtmux-796eb522ac6534510b22c34296cbd172f8fab3ae.zip |
vte is buggy and doesn't home the cursor after changing the scroll
region. Several people are hitting this, so add a workaround.
Diffstat (limited to 'tty.c')
-rw-r--r-- | tty.c | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -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. */ |