From 5a7cf897f266345635c6adeca20c9bb90dbe1e2f Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Mon, 1 Oct 2018 19:47:58 +0100 Subject: Correctly check offset for drawing multiple cells, GitHub issue 1481. --- tty.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tty.c b/tty.c index 510a442a..86f0d722 100644 --- a/tty.c +++ b/tty.c @@ -1739,7 +1739,8 @@ tty_cmd_cells(struct tty *tty, const struct tty_ctx *ctx) return; if (ctx->bigger && - (ctx->ocx < ctx->ox || ctx->ocx + ctx->num > ctx->ox + ctx->sx)) { + (ctx->xoff + ctx->ocx < ctx->ox || + ctx->xoff + ctx->ocx + ctx->num > ctx->ox + ctx->sx)) { if (!ctx->wrapped || !tty_pane_full_width(tty, ctx) || (tty->term->flags & TERM_EARLYWRAP) || -- cgit