Merge a number of fixes from master for layouts, mostly prompted by testing by

Thomas Sattler.
This commit is contained in:
Nicholas Marriott
2019-04-11 09:26:34 +01:00
parent 73b54a0e5f
commit bba1809eac
7 changed files with 134 additions and 187 deletions

3
tty.c
View File

@ -907,9 +907,8 @@ tty_is_visible(struct tty *tty, const struct tty_ctx *ctx, u_int px, u_int py,
lines = 0;
if (xoff + nx <= ctx->ox || xoff >= ctx->ox + ctx->sx ||
yoff + ny <= ctx->oy || yoff >= lines + ctx->oy + ctx->sy) {
yoff + ny <= ctx->oy || yoff >= lines + ctx->oy + ctx->sy)
return (0);
}
return (1);
}