aboutsummaryrefslogtreecommitdiff
path: root/tty.c
diff options
context:
space:
mode:
authorThomas Adam <thomas@xteddy.org>2017-02-21 09:23:50 +0000
committerThomas Adam <thomas@xteddy.org>2017-02-21 09:23:50 +0000
commit0ad2beae7e55cb3918d76825e1644e07af51253e (patch)
tree8981841befb0041f40e8f7424d2212612f4438b1 /tty.c
parent55e76edd3cc9bfa8aeac60b17d3344031097b1b6 (diff)
parentf27e1d07fced949f6186ef57fcb8869e70c7d1c7 (diff)
downloadrtmux-0ad2beae7e55cb3918d76825e1644e07af51253e.tar.gz
rtmux-0ad2beae7e55cb3918d76825e1644e07af51253e.tar.bz2
rtmux-0ad2beae7e55cb3918d76825e1644e07af51253e.zip
Merge branch 'obsd-master'
Conflicts: Makefile
Diffstat (limited to 'tty.c')
-rw-r--r--tty.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tty.c b/tty.c
index 7bf13c46..3b2fd3d3 100644
--- a/tty.c
+++ b/tty.c
@@ -1321,7 +1321,7 @@ tty_region(struct tty *tty, u_int rupper, u_int rlower)
tty_cursor(tty, 0, tty->cy);
tty_putcode2(tty, TTYC_CSR, tty->rupper, tty->rlower);
- tty->cx = tty->cy = 0;
+ tty->cx = tty->cy = UINT_MAX;
}
/* Turn off margin. */
@@ -1359,7 +1359,7 @@ tty_margin(struct tty *tty, u_int rleft, u_int rright)
else
snprintf(s, sizeof s, "\033[%u;%us", rleft + 1, rright + 1);
tty_puts(tty, s);
- tty->cx = tty->cy = 0;
+ tty->cx = tty->cy = UINT_MAX;
}
/* Move cursor inside pane. */