From 8ced9c332c659bfd94e6e2a48bd875579e1bb27c Mon Sep 17 00:00:00 2001 From: nicm Date: Mon, 15 Jun 2026 11:45:51 +0000 Subject: [PATCH] Use correct x position when drawing clipped line. --- tty.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tty.c b/tty.c index bb7c0ae8..5b66e2d1 100644 --- a/tty.c +++ b/tty.c @@ -1444,7 +1444,7 @@ tty_cmd_redrawline(struct tty *tty, const struct tty_ctx *ctx) rr = &r->ranges[j]; if (rr->nx == 0) 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); } }