aboutsummaryrefslogtreecommitdiff
path: root/tty.c
diff options
context:
space:
mode:
authorTiago Cunha <tcunha@gmx.com>2009-12-04 22:17:26 +0000
committerTiago Cunha <tcunha@gmx.com>2009-12-04 22:17:26 +0000
commit39b1cdbdb9766bb2bd4ae04b55b19b1e5e1339b6 (patch)
tree89da292d88444eeacede4e795198b7326aaa2425 /tty.c
parent3db559cf5aca6ed4bbaa2e8f8d65893b26e5a313 (diff)
downloadrtmux-39b1cdbdb9766bb2bd4ae04b55b19b1e5e1339b6.tar.gz
rtmux-39b1cdbdb9766bb2bd4ae04b55b19b1e5e1339b6.tar.bz2
rtmux-39b1cdbdb9766bb2bd4ae04b55b19b1e5e1339b6.zip
Sync OpenBSD patchset 583:
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.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/tty.c b/tty.c
index 2ebaf475..584b96e6 100644
--- a/tty.c
+++ b/tty.c
@@ -1,4 +1,4 @@
-/* $Id: tty.c,v 1.181 2009-12-04 22:14:47 tcunha Exp $ */
+/* $Id: tty.c,v 1.182 2009-12-04 22:17:26 tcunha Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -1011,10 +1011,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. */