diff options
author | Nicholas Marriott <nicholas.marriott@gmail.com> | 2018-10-01 19:47:58 +0100 |
---|---|---|
committer | Nicholas Marriott <nicholas.marriott@gmail.com> | 2018-10-01 19:47:58 +0100 |
commit | 5a7cf897f266345635c6adeca20c9bb90dbe1e2f (patch) | |
tree | f87a658331aab5212d590d8fd85a14664b786e9a /tty.c | |
parent | 8053b65f1ed23a7d9dab0381cdbf2dbd441c61ec (diff) | |
download | rtmux-5a7cf897f266345635c6adeca20c9bb90dbe1e2f.tar.gz rtmux-5a7cf897f266345635c6adeca20c9bb90dbe1e2f.tar.bz2 rtmux-5a7cf897f266345635c6adeca20c9bb90dbe1e2f.zip |
Correctly check offset for drawing multiple cells, GitHub issue 1481.
Diffstat (limited to 'tty.c')
-rw-r--r-- | tty.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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) || |