Handle ranges for panes which are outside the window to the left.

This commit is contained in:
nicm
2026-05-30 11:19:39 +00:00
parent b9d228c72f
commit f8ab7a5158
3 changed files with 5 additions and 4 deletions

5
tty.c
View File

@@ -1957,10 +1957,11 @@ tty_cmd_cell(struct tty *tty, const struct tty_ctx *ctx)
px = ctx->xoff + ctx->ocx - ctx->wox;
py = ctx->yoff + ctx->ocy - ctx->woy;
if (!tty_is_visible(tty, ctx, ctx->ocx, ctx->ocy, 1, 1) ||
(gcp->data.width == 1 && !tty_check_overlay(tty, px, py)))
if (!tty_is_visible(tty, ctx, ctx->ocx, ctx->ocy, 1, 1))
return;
if (gcp->data.width == 1 && !tty_check_overlay(tty, px, py))
return;
if (gcp->data.width > 1) { /* could be partially obscured */
r = tty_check_overlay_range(tty, px, py, gcp->data.width);
for (i = 0; i < r->used; i++)