aboutsummaryrefslogtreecommitdiff
path: root/screen-redraw.c
diff options
context:
space:
mode:
authorThomas Adam <thomas@xteddy.org>2021-10-11 16:01:13 +0100
committerThomas Adam <thomas@xteddy.org>2021-10-11 16:01:13 +0100
commitaff2a473ec3c16396d6be9d61c5e5dc1201a725b (patch)
tree828bc514fff183f468c2f509bf509ea6042cdaa7 /screen-redraw.c
parentaf82106fae823f55fd3c746e1b48bc8e52a55e68 (diff)
parentb8581ec80e5339be5e2c08cfec70a77f21ba06b2 (diff)
downloadrtmux-aff2a473ec3c16396d6be9d61c5e5dc1201a725b.tar.gz
rtmux-aff2a473ec3c16396d6be9d61c5e5dc1201a725b.tar.bz2
rtmux-aff2a473ec3c16396d6be9d61c5e5dc1201a725b.zip
Merge branch 'obsd-master' into master
Diffstat (limited to 'screen-redraw.c')
-rw-r--r--screen-redraw.c13
1 files changed, 8 insertions, 5 deletions
diff --git a/screen-redraw.c b/screen-redraw.c
index 82e390cd..1d736531 100644
--- a/screen-redraw.c
+++ b/screen-redraw.c
@@ -685,14 +685,17 @@ screen_redraw_draw_borders_cell(struct screen_redraw_ctx *ctx, u_int i, u_int j)
struct tty *tty = &c->tty;
struct format_tree *ft;
struct window_pane *wp;
- u_int cell_type, x = ctx->ox + i, y = ctx->oy + j;
- int pane_status = ctx->pane_status, isolates;
struct grid_cell gc;
const struct grid_cell *tmp;
+ struct overlay_ranges r;
+ u_int cell_type, x = ctx->ox + i, y = ctx->oy + j;
+ int pane_status = ctx->pane_status, isolates;
- if (c->overlay_check != NULL &&
- !c->overlay_check(c, c->overlay_data, x, y))
- return;
+ if (c->overlay_check != NULL) {
+ c->overlay_check(c, c->overlay_data, x, y, 1, &r);
+ if (r.nx[0] + r.nx[1] == 0)
+ return;
+ }
cell_type = screen_redraw_check_cell(c, x, y, pane_status, &wp);
if (cell_type == CELL_INSIDE)