mirror of
https://github.com/tmux/tmux.git
synced 2026-05-30 22:26:18 +00:00
Do not reduce the end position when removing padding.
This commit is contained in:
@@ -1351,8 +1351,8 @@ screen_redraw_draw_pane(struct screen_redraw_ctx *ctx, struct window_pane *wp)
|
|||||||
ri = &r->ranges[k];
|
ri = &r->ranges[k];
|
||||||
if (ri->nx == 0)
|
if (ri->nx == 0)
|
||||||
continue;
|
continue;
|
||||||
log_debug("%s: %s %%%u range pane (%u,%u) width %u, tty (%u,%u) width %u",
|
log_debug("%s: %s %%%u range %u (%u,%u) width %u, tty (%u,%u) width %u",
|
||||||
__func__, c->name, wp->id,
|
__func__, c->name, wp->id, k,
|
||||||
ri->px + (int)ctx->ox - wp->xoff, j, ri->nx,
|
ri->px + (int)ctx->ox - wp->xoff, j, ri->nx,
|
||||||
ri->px, py, ri->nx);
|
ri->px, py, ri->nx);
|
||||||
tty_draw_line(tty, s, ri->px + (int)ctx->ox - wp->xoff, j, ri->nx,
|
tty_draw_line(tty, s, ri->px + (int)ctx->ox - wp->xoff, j, ri->nx,
|
||||||
|
|||||||
@@ -181,7 +181,6 @@ tty_draw_line(struct tty *tty, struct screen *s, u_int px, u_int py, u_int nx,
|
|||||||
atx += cx;
|
atx += cx;
|
||||||
px += cx;
|
px += cx;
|
||||||
nx -= cx;
|
nx -= cx;
|
||||||
ex -= cx;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Did the previous line wrap on to this one? */
|
/* Did the previous line wrap on to this one? */
|
||||||
|
|||||||
Reference in New Issue
Block a user