Fix merge messup where i is no longer x, use px and ri->px instead here.

This commit is contained in:
Michael Grant
2026-05-23 06:15:12 +01:00
parent d3e8dd3623
commit 91b4e02805

4
tty.c
View File

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