mirror of
https://github.com/tmux/tmux.git
synced 2025-01-19 04:37:42 +00:00
Correctly check offset for drawing multiple cells, GitHub issue 1481.
This commit is contained in:
parent
8053b65f1e
commit
5a7cf897f2
3
tty.c
3
tty.c
@ -1739,7 +1739,8 @@ tty_cmd_cells(struct tty *tty, const struct tty_ctx *ctx)
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
if (ctx->bigger &&
|
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 ||
|
if (!ctx->wrapped ||
|
||||||
!tty_pane_full_width(tty, ctx) ||
|
!tty_pane_full_width(tty, ctx) ||
|
||||||
(tty->term->flags & TERM_EARLYWRAP) ||
|
(tty->term->flags & TERM_EARLYWRAP) ||
|
||||||
|
Loading…
Reference in New Issue
Block a user