mirror of
https://github.com/tmux/tmux.git
synced 2024-12-13 10:08:47 +00:00
Sync OpenBSD patchset 404:
Don't try to use \n across scroll region when doing \r\n either.
This commit is contained in:
parent
941032b707
commit
b8e4bd2029
4
tty.c
4
tty.c
@ -1,4 +1,4 @@
|
||||
/* $Id: tty.c,v 1.151 2009-10-15 01:42:07 tcunha Exp $ */
|
||||
/* $Id: tty.c,v 1.152 2009-10-15 01:44:15 tcunha Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
|
||||
@ -1009,7 +1009,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;
|
||||
|
Loading…
Reference in New Issue
Block a user