From 479cac4896121b45778bb6ea726173f0fbcdc663 Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Wed, 29 Aug 2018 20:52:27 +0100 Subject: [PATCH] Fix target line for fast path in tty_draw_pane. --- tty.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tty.c b/tty.c index facf5814..ac24a7f2 100644 --- a/tty.c +++ b/tty.c @@ -1147,7 +1147,7 @@ tty_draw_pane(struct tty *tty, const struct tty_ctx *ctx, u_int py) log_debug("%s: %s %u %d", __func__, tty->client->name, py, ctx->bigger); if (!ctx->bigger) { - tty_draw_line(tty, wp, s, 0, py, nx, ctx->xoff, ctx->yoff); + tty_draw_line(tty, wp, s, 0, py, nx, ctx->xoff, ctx->yoff + py); return; } if (tty_clamp_line(tty, ctx, 0, py, nx, &i, &x, &rx, &ry))