mirror of
https://github.com/tmate-io/tmate.git
synced 2024-11-23 00:23:08 +01:00
Don't try to use \n across scroll region when doing \r\n either.
This commit is contained in:
parent
9294cb099f
commit
5d78371628
2
tty.c
2
tty.c
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user