mirror of
https://github.com/tmux/tmux.git
synced 2026-05-30 22:26:18 +00:00
Merge branch 'master' into floating_panes
This commit is contained in:
@@ -1353,12 +1353,13 @@ 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 %u (%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, k,
|
__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,
|
||||||
ri->px, py, &defaults, palette);
|
j, ri->nx, ri->px, py, &defaults, palette);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -2703,18 +2703,19 @@ screen_write_combine(struct screen_write_ctx *ctx, const struct grid_cell *gc)
|
|||||||
grid_view_set_padding(gd, cx - 1, cy);
|
grid_view_set_padding(gd, cx - 1, cy);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Check if all of this character is visible. No character will
|
* Check if all of this character is visible. No character will be
|
||||||
* be obscured in the middle, only on left or right, but there
|
* obscured in the middle, only on left or right, but there could be an
|
||||||
* could be an empty range in the visible ranges so we add them all up.
|
* empty range in the visible ranges so we add them all up.
|
||||||
*/
|
*/
|
||||||
if (wp != NULL)
|
if (wp != NULL)
|
||||||
yoff = wp->yoff;
|
yoff = wp->yoff;
|
||||||
r = screen_redraw_get_visible_ranges(wp, cx - n, cy + yoff, n, NULL);
|
r = screen_redraw_get_visible_ranges(wp, cx - n, cy + yoff, n, NULL);
|
||||||
for (i=0, vis=0; i < r->used; i++) vis += r->ranges[i].nx;
|
for (i = 0, vis = 0; i < r->used; i++)
|
||||||
|
vis += r->ranges[i].nx;
|
||||||
if (vis < n) {
|
if (vis < n) {
|
||||||
/*
|
/*
|
||||||
* Part of this character is obscured. Return 1
|
* Part of this character is obscured. Return 1 and let
|
||||||
* and let screen_write_cell write a space.
|
* screen_write_cell write a space.
|
||||||
*/
|
*/
|
||||||
return (1);
|
return (1);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user