From 9c6cfcd2e95d3b304faa3636406536ae10073ccf Mon Sep 17 00:00:00 2001 From: nicm Date: Thu, 28 May 2026 07:58:45 +0000 Subject: [PATCH] Obscured check should not be true if pane is same size as window. --- screen-write.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/screen-write.c b/screen-write.c index efc541cc..91727136 100644 --- a/screen-write.c +++ b/screen-write.c @@ -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); }