diff options
author | Tiago Cunha <tcunha@gmx.com> | 2009-10-23 17:03:48 +0000 |
---|---|---|
committer | Tiago Cunha <tcunha@gmx.com> | 2009-10-23 17:03:48 +0000 |
commit | 13d1df659f464714af03221bfe2f1ef680dae3ae (patch) | |
tree | d00925466e1920d011f232db9ea5b64a691ab582 | |
parent | 4afecbe400ef8452edec957795b9c69800eee411 (diff) | |
download | rtmux-13d1df659f464714af03221bfe2f1ef680dae3ae.tar.gz rtmux-13d1df659f464714af03221bfe2f1ef680dae3ae.tar.bz2 rtmux-13d1df659f464714af03221bfe2f1ef680dae3ae.zip |
Sync OpenBSD patchset 413:
When checking whether the region will scroll and the cursor position is thus
unsuitable for using CUD/CUU, check the current cursor position not the target
position.
-rw-r--r-- | tty.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -1,4 +1,4 @@ -/* $Id: tty.c,v 1.152 2009-10-15 01:44:15 tcunha Exp $ */ +/* $Id: tty.c,v 1.153 2009-10-23 17:03:48 tcunha Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net> @@ -1062,14 +1062,14 @@ tty_cursor(struct tty *tty, u_int cx, u_int cy) */ /* One above. */ - if (cy != tty->rupper && + if (thisy != tty->rupper && cy == thisy - 1 && tty_term_has(term, TTYC_CUU1)) { tty_putcode(tty, TTYC_CUU1); goto out; } /* One below. */ - if (cy != tty->rlower && + if (thisy != tty->rlower && cy == thisy + 1 && tty_term_has(term, TTYC_CUD1)) { tty_putcode(tty, TTYC_CUD1); goto out; |