diff options
author | 2017-08-21 21:02:58 +0000 | |
---|---|---|
committer | 2017-08-21 21:02:58 +0000 | |
commit | da3c4db732c59d5918e9131b3dce6432fb6eebe7 (patch) | |
tree | 34dad2f0fb80de76fa76358ff0fa2ce3976eda3a /usr.bin/tmux/tty.c | |
parent | Add RK3399 CPU core related clocks. Fix RK3399 SD/MMC controller clock. (diff) | |
download | wireguard-openbsd-da3c4db732c59d5918e9131b3dce6432fb6eebe7.tar.xz wireguard-openbsd-da3c4db732c59d5918e9131b3dce6432fb6eebe7.zip |
Same as previous for \r alone.
Diffstat (limited to 'usr.bin/tmux/tty.c')
-rw-r--r-- | usr.bin/tmux/tty.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/tmux/tty.c b/usr.bin/tmux/tty.c index 40808279423..66edbfa5b35 100644 --- a/usr.bin/tmux/tty.c +++ b/usr.bin/tmux/tty.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tty.c,v 1.293 2017/08/21 21:01:21 nicm Exp $ */ +/* $OpenBSD: tty.c,v 1.294 2017/08/21 21:02:58 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com> @@ -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; } |