Use correct x position when drawing clipped line.

This commit is contained in:
nicm
2026-06-15 11:45:51 +00:00
parent a41e6e2ed2
commit 8ced9c332c

2
tty.c
View File

@@ -1444,7 +1444,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);
} }
} }