mirror of
https://github.com/tmux/tmux.git
synced 2024-12-12 17:38:48 +00:00
Do not draw cells which have no cell (zoomed and they are not active).
This commit is contained in:
parent
45841400f2
commit
7fbd2f5498
@ -456,6 +456,9 @@ screen_redraw_pane(struct client *c, struct window_pane *wp)
|
||||
{
|
||||
struct screen_redraw_ctx ctx;
|
||||
|
||||
if (wp->layout_cell == NULL)
|
||||
return;
|
||||
|
||||
screen_redraw_set_context(c, &ctx);
|
||||
|
||||
screen_redraw_draw_pane(&ctx, wp);
|
||||
@ -542,6 +545,8 @@ screen_redraw_draw_panes(struct screen_redraw_ctx *ctx)
|
||||
log_debug("%s: %s @%u", __func__, c->name, w->id);
|
||||
|
||||
TAILQ_FOREACH(wp, &w->panes, entry) {
|
||||
if (wp->layout_cell == NULL)
|
||||
continue;
|
||||
screen_redraw_draw_pane(ctx, wp);
|
||||
if (c->flags & CLIENT_IDENTIFY)
|
||||
screen_redraw_draw_number(ctx, wp);
|
||||
|
4
tmux.h
4
tmux.h
@ -2013,10 +2013,10 @@ void grid_view_scroll_region_up(struct grid *, u_int, u_int, u_int);
|
||||
void grid_view_scroll_region_down(struct grid *, u_int, u_int, u_int);
|
||||
void grid_view_insert_lines(struct grid *, u_int, u_int, u_int);
|
||||
void grid_view_insert_lines_region(struct grid *, u_int, u_int, u_int,
|
||||
u_int);
|
||||
u_int);
|
||||
void grid_view_delete_lines(struct grid *, u_int, u_int, u_int);
|
||||
void grid_view_delete_lines_region(struct grid *, u_int, u_int, u_int,
|
||||
u_int);
|
||||
u_int);
|
||||
void grid_view_insert_cells(struct grid *, u_int, u_int, u_int, u_int);
|
||||
void grid_view_delete_cells(struct grid *, u_int, u_int, u_int, u_int);
|
||||
char *grid_view_string_cells(struct grid *, u_int, u_int, u_int);
|
||||
|
Loading…
Reference in New Issue
Block a user