diff options
author | Nicholas Marriott <nicm@cvs.openbsd.org> | 2009-12-04 11:01:30 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@cvs.openbsd.org> | 2009-12-04 11:01:30 +0000 |
commit | 8164d35f1528cb9da2afcbabcb126eba558f3903 (patch) | |
tree | 8ff110a6b2dbedbca35f845b67d6cd0f5edbca9a /usr.bin/tmux/tty.c | |
parent | 06f97387031857e8ebc6b1576398479a85558e63 (diff) |
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 'usr.bin/tmux/tty.c')
-rw-r--r-- | usr.bin/tmux/tty.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/usr.bin/tmux/tty.c b/usr.bin/tmux/tty.c index 05c2171f82d..0f0135f5284 100644 --- a/usr.bin/tmux/tty.c +++ b/usr.bin/tmux/tty.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tty.c,v 1.77 2009/12/03 22:50:10 nicm Exp $ */ +/* $OpenBSD: tty.c,v 1.78 2009/12/04 11:01:29 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net> @@ -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. */ |