mirror of
https://github.com/tmux/tmux.git
synced 2025-01-11 18:58:47 +00:00
Do not emit \r\n to move to column 0 if there are margins, because it
will instead move to the margin left.
This commit is contained in:
parent
768740ae98
commit
7ec2a2b9ce
3
tty.c
3
tty.c
@ -1609,7 +1609,8 @@ tty_cursor(struct tty *tty, u_int cx, u_int cy)
|
||||
}
|
||||
|
||||
/* Zero on the next line. */
|
||||
if (cx == 0 && cy == thisy + 1 && thisy != tty->rlower) {
|
||||
if (cx == 0 && cy == thisy + 1 && thisy != tty->rlower &&
|
||||
(!tty_use_margin(tty) || tty->rleft == 0)) {
|
||||
tty_putc(tty, '\r');
|
||||
tty_putc(tty, '\n');
|
||||
goto out;
|
||||
|
Loading…
Reference in New Issue
Block a user