aboutsummaryrefslogtreecommitdiff
path: root/screen-write.c
diff options
context:
space:
mode:
authorThomas Adam <thomas@xteddy.org>2020-06-18 12:01:22 +0100
committerThomas Adam <thomas@xteddy.org>2020-06-18 12:01:22 +0100
commit6c437d45ac90b2f62d6176c1ac14a717023cfaae (patch)
treec00437b2b08d98889960afc869b250de5a698dc5 /screen-write.c
parenteb448daa1a07fa25a9928791cdc8411da271a9bc (diff)
parent068b92b0512bb29e29d1c2aa76c0b29f788e45f6 (diff)
downloadrtmux-6c437d45ac90b2f62d6176c1ac14a717023cfaae.tar.gz
rtmux-6c437d45ac90b2f62d6176c1ac14a717023cfaae.tar.bz2
rtmux-6c437d45ac90b2f62d6176c1ac14a717023cfaae.zip
Merge branch 'obsd-master'
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. */