Passing in '&type' to avoid null dereference

This commit is contained in:
Dane Jensen
2026-04-27 19:59:12 -07:00
parent 3400a312dd
commit e18c10d340

View File

@@ -974,7 +974,7 @@ screen_redraw_draw_border_arrows(struct screen_redraw_ctx *ctx, u_int i,
} }
if ((int)j == wp->yoff + 1) { if ((int)j == wp->yoff + 1) {
if (border == SCREEN_REDRAW_OUTSIDE) { if (border == SCREEN_REDRAW_OUTSIDE) {
if (screen_redraw_two_panes(wp->window, 0)) { if (screen_redraw_two_panes(wp->window, &type)) {
if (active == TAILQ_FIRST(&w->panes)) if (active == TAILQ_FIRST(&w->panes))
border = SCREEN_REDRAW_BORDER_RIGHT; border = SCREEN_REDRAW_BORDER_RIGHT;
else else