The redraw callback could be fired with a NULL pane if it updates while

in a mode, problem reported by Martin Vahlensieck.
pull/2288/head
nicm 2020-06-18 08:41:56 +00:00
parent 2372b0fdc6
commit 068b92b051
1 changed files with 2 additions and 1 deletions

View File

@ -103,7 +103,8 @@ screen_write_redraw_cb(const struct tty_ctx *ttyctx)
{
struct window_pane *wp = ttyctx->arg;
wp->flags |= PANE_REDRAW;
if (wp != NULL)
wp->flags |= PANE_REDRAW;
}
/* Update context for client. */