Don't try to use \n across scroll region when doing \r\n either.

This commit is contained in:
Nicholas Marriott 2009-10-13 08:37:15 +00:00
parent 9294cb099f
commit 5d78371628

2
tty.c
View File

@ -1004,7 +1004,7 @@ tty_cursor(struct tty *tty, u_int cx, u_int cy)
} }
/* Zero on the next line. */ /* 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, '\r');
tty_putc(tty, '\n'); tty_putc(tty, '\n');
goto out; goto out;