summaryrefslogtreecommitdiffstats
path: root/screen-write.c
diff options
context:
space:
mode:
Diffstat (limited to 'screen-write.c')
-rw-r--r--screen-write.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/screen-write.c b/screen-write.c
index 46ac967e..4c328ca2 100644
--- a/screen-write.c
+++ b/screen-write.c
@@ -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. */