aboutsummaryrefslogtreecommitdiff
path: root/tty.c
diff options
context:
space:
mode:
authorThomas Adam <thomas@xteddy.org>2019-06-26 15:02:26 +0100
committerThomas Adam <thomas@xteddy.org>2019-06-26 15:02:26 +0100
commitf797ac9ff6cd18b9f5737bea80fbf58dc5b5729b (patch)
tree4fc6be8865e689de13a93e944a5d182d37b7257d /tty.c
parenta1d4bf20f774707c22249399dd89d1d6acf049ef (diff)
parentc599ad63f8857bd74e85150e60339fd2efbb9650 (diff)
downloadrtmux-f797ac9ff6cd18b9f5737bea80fbf58dc5b5729b.tar.gz
rtmux-f797ac9ff6cd18b9f5737bea80fbf58dc5b5729b.tar.bz2
rtmux-f797ac9ff6cd18b9f5737bea80fbf58dc5b5729b.zip
Merge branch 'obsd-master'
Diffstat (limited to 'tty.c')
-rw-r--r--tty.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/tty.c b/tty.c
index 8d3b2858..1c0c88d4 100644
--- a/tty.c
+++ b/tty.c
@@ -1060,17 +1060,17 @@ tty_clamp_area(struct tty *tty, const struct tty_ctx *ctx, u_int px, u_int py,
*y = ctx->yoff + py - ctx->oy;
*ry = ny;
} else if (yoff < ctx->oy && yoff + ny > ctx->oy + ctx->sy) {
- /* Both left and right not visible. */
+ /* Both top and bottom not visible. */
*j = ctx->oy;
*y = 0;
*ry = ctx->sy;
} else if (yoff < ctx->oy) {
- /* Left not visible. */
+ /* Top not visible. */
*j = ctx->oy - (ctx->yoff + py);
*y = 0;
*ry = ny - *j;
} else {
- /* Right not visible. */
+ /* Bottom not visible. */
*j = 0;
*y = (ctx->yoff + py) - ctx->oy;
*ry = ctx->sy - *y;