aboutsummaryrefslogtreecommitdiff
path: root/tty.c
diff options
context:
space:
mode:
authornicm <nicm>2017-08-21 21:02:58 +0000
committernicm <nicm>2017-08-21 21:02:58 +0000
commitbbe9da063e1bc4e88d5954e7f2f5ad49c0aecad0 (patch)
treea53f48c8933d0a9c9f0010abe139a7d10737325e /tty.c
parent7ec2a2b9ce0d7045c604607f4fa28b380f8f37f8 (diff)
downloadrtmux-bbe9da063e1bc4e88d5954e7f2f5ad49c0aecad0.tar.gz
rtmux-bbe9da063e1bc4e88d5954e7f2f5ad49c0aecad0.tar.bz2
rtmux-bbe9da063e1bc4e88d5954e7f2f5ad49c0aecad0.zip
Same as previous for \r alone.
Diffstat (limited to 'tty.c')
-rw-r--r--tty.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tty.c b/tty.c
index 68714cb9..24c5d83e 100644
--- a/tty.c
+++ b/tty.c
@@ -1623,7 +1623,7 @@ tty_cursor(struct tty *tty, u_int cx, u_int cy)
*/
/* To left edge. */
- if (cx == 0) {
+ if (cx == 0 && (!tty_use_margin(tty) || tty->rleft == 0)) {
tty_putc(tty, '\r');
goto out;
}