Use correct x position when drawing clipped line.

This commit is contained in:
nicm
2026-06-15 11:45:51 +00:00
committed by Nicholas Marriott
parent bae5c14941
commit 2d9afa6348

2
tty.c
View File

@@ -1445,7 +1445,7 @@ tty_cmd_redrawline(struct tty *tty, const struct tty_ctx *ctx)
rr = &r->ranges[j]; rr = &r->ranges[j];
if (rr->nx == 0) if (rr->nx == 0)
continue; continue;
tty_draw_line(tty, ctx->s, i + rr->px - x, tty_draw_line(tty, ctx->s, ctx->ocx + i + rr->px - x,
ctx->ocy, rr->nx, rr->px, ry, &ctx->style_ctx); ctx->ocy, rr->nx, rr->px, ry, &ctx->style_ctx);
} }
} }