Obscured check should not be true if pane is same size as window.

This commit is contained in:
nicm
2026-05-28 07:58:45 +00:00
parent ecfe6e4e7a
commit 9c6cfcd2e9

View File

@@ -191,8 +191,8 @@ screen_write_pane_is_obscured(struct screen_write_ctx *ctx)
if (ctx->wp->xoff < 0 ||
ctx->wp->yoff < 0 ||
ctx->wp->xoff + ctx->wp->sx >= ctx->wp->window->sx ||
ctx->wp->yoff + ctx->wp->sy >= ctx->wp->window->sy) {
ctx->wp->xoff + ctx->wp->sx > ctx->wp->window->sx ||
ctx->wp->yoff + ctx->wp->sy > ctx->wp->window->sy) {
ctx->flags |= SCREEN_WRITE_OBSCURED;
return (1);
}