mirror of
https://github.com/tmux/tmux.git
synced 2026-05-30 14:16:18 +00:00
Correct offsets for redrawing entire line here too.
This commit is contained in:
9
tty.c
9
tty.c
@@ -1409,9 +1409,8 @@ tty_draw_pane(struct tty *tty, const struct tty_ctx *ctx, u_int py)
|
|||||||
rr = &r->ranges[j];
|
rr = &r->ranges[j];
|
||||||
if (rr->nx == 0)
|
if (rr->nx == 0)
|
||||||
continue;
|
continue;
|
||||||
tty_draw_line(tty, s, rr->px, py, rr->nx,
|
tty_draw_line(tty, s, rr->px - ctx->xoff, py, rr->nx,
|
||||||
ctx->xoff + rr->px, ctx->yoff + py, &ctx->defaults,
|
rr->px, ctx->yoff + py, &ctx->defaults, ctx->palette);
|
||||||
ctx->palette);
|
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@@ -1421,8 +1420,8 @@ tty_draw_pane(struct tty *tty, const struct tty_ctx *ctx, u_int py)
|
|||||||
rr = &r->ranges[j];
|
rr = &r->ranges[j];
|
||||||
if (rr->nx == 0)
|
if (rr->nx == 0)
|
||||||
continue;
|
continue;
|
||||||
tty_draw_line(tty, s, i + rr->px, py, rr->nx,
|
tty_draw_line(tty, s, i + rr->px - x, py, rr->nx,
|
||||||
x + rr->px, ry, &ctx->defaults, ctx->palette);
|
rr->px, ry, &ctx->defaults, ctx->palette);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user