mirror of
https://github.com/tmux/tmux.git
synced 2026-06-20 17:25:57 +00:00
Use correct x position when drawing clipped line.
This commit is contained in:
2
tty.c
2
tty.c
@@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user