Skip to content

Commit

Permalink
Check for right sense of bigger flag.
Browse files Browse the repository at this point in the history
  • Loading branch information
nicm committed Aug 19, 2018
1 parent 4bf205a commit b53830d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tty.c
Original file line number Diff line number Diff line change
Expand Up @@ -871,7 +871,7 @@ tty_is_visible(const struct tty_ctx *ctx, u_int px, u_int py, u_int nx,
struct window_pane *wp = ctx->wp;
u_int xoff = wp->xoff + px, yoff = wp->yoff + py;

if (ctx->bigger)
if (!ctx->bigger)
return (1);
if (xoff + nx <= ctx->ox || xoff >= ctx->ox + ctx->sx ||
yoff + ny <= ctx->oy || yoff >= ctx->oy + ctx->sy) {
Expand Down

0 comments on commit b53830d

Please sign in to comment.