mirror of
https://github.com/tmux/tmux.git
synced 2026-05-30 22:26:18 +00:00
tty_clear_area should not work out popup ranges because tty_clear_line is going
to do it anyway.
This commit is contained in:
13
tty.c
13
tty.c
@@ -1394,17 +1394,8 @@ tty_clear_area(struct tty *tty, const struct tty_ctx *ctx, u_int py,
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Couldn't use an escape sequence, loop over the lines. */
|
/* Couldn't use an escape sequence, loop over the lines. */
|
||||||
if (c->session->statusat == 0)
|
for (yy = py; yy < py + ny; yy++)
|
||||||
oy = c->session->statuslines;
|
tty_clear_line(tty, defaults, yy, px, nx, bg);
|
||||||
for (yy = py; yy < py + ny; yy++) {
|
|
||||||
r = tty_check_overlay_range(tty, px, yy - oy, nx);
|
|
||||||
for (i = 0; i < r->used; i++) {
|
|
||||||
ri = &r->ranges[i];
|
|
||||||
if (ri->nx == 0)
|
|
||||||
continue;
|
|
||||||
tty_clear_line(tty, defaults, yy, ri->px, ri->nx, bg);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Clear an area in a pane. */
|
/* Clear an area in a pane. */
|
||||||
|
|||||||
Reference in New Issue
Block a user