aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@openbsd.org>2009-10-13 08:37:15 +0000
committerNicholas Marriott <nicm@openbsd.org>2009-10-13 08:37:15 +0000
commit5d78371628a719d5d1f0e5a0ecc99b885f4e7d15 (patch)
tree705077decc98573a285c42f3471811fe44a34c1b
parent9294cb099ff371998055410bb3cfd7be0a518368 (diff)
downloadrtmux-5d78371628a719d5d1f0e5a0ecc99b885f4e7d15.tar.gz
rtmux-5d78371628a719d5d1f0e5a0ecc99b885f4e7d15.tar.bz2
rtmux-5d78371628a719d5d1f0e5a0ecc99b885f4e7d15.zip
Don't try to use \n across scroll region when doing \r\n either.
-rw-r--r--tty.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tty.c b/tty.c
index 75721c63..5bf9b6d3 100644
--- a/tty.c
+++ b/tty.c
@@ -1004,7 +1004,7 @@ tty_cursor(struct tty *tty, u_int cx, u_int cy)
}
/* Zero on the next line. */
- if (cx == 0 && cy == thisy + 1) {
+ if (cx == 0 && cy == thisy + 1 && thisy != tty->rlower) {
tty_putc(tty, '\r');
tty_putc(tty, '\n');
goto out;