From 91b4e02805a8ad6bcfb71bb5c294ffffbafcaf18 Mon Sep 17 00:00:00 2001 From: Michael Grant Date: Sat, 23 May 2026 06:15:12 +0100 Subject: [PATCH] Fix merge messup where i is no longer x, use px and ri->px instead here. --- tty.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tty.c b/tty.c index 121e3b85..58c80950 100644 --- a/tty.c +++ b/tty.c @@ -1471,12 +1471,12 @@ tty_draw_pane(struct tty *tty, const struct tty_ctx *ctx, u_int py) } if (tty_clamp_line(tty, ctx, 0, py, nx, &px, &x, &rx, &ry)) { if (wp) { - r = tty_check_overlay_range(tty, i, py, rx); + r = tty_check_overlay_range(tty, px, py, rx); for (i=0; i < r->used; i++) { ri = &r->ranges[i]; if (ri->nx == 0) continue; - tty_draw_line(tty, s, i, py, ri->nx, + tty_draw_line(tty, s, ri->px, py, ri->nx, x + ri->px, ry, &ctx->defaults, ctx->palette); }