diff options
author | nicm <nicm> | 2020-06-18 08:41:56 +0000 |
---|---|---|
committer | nicm <nicm> | 2020-06-18 08:41:56 +0000 |
commit | 068b92b0512bb29e29d1c2aa76c0b29f788e45f6 (patch) | |
tree | 753b23d1bf534c45194160dc6e98a5bb03d5efc1 | |
parent | 2372b0fdc67f17336e39d8eb86019103aad6bb4e (diff) | |
download | rtmux-068b92b0512bb29e29d1c2aa76c0b29f788e45f6.tar.gz rtmux-068b92b0512bb29e29d1c2aa76c0b29f788e45f6.tar.bz2 rtmux-068b92b0512bb29e29d1c2aa76c0b29f788e45f6.zip |
The redraw callback could be fired with a NULL pane if it updates while
in a mode, problem reported by Martin Vahlensieck.
-rw-r--r-- | screen-write.c | 3 |
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. */ |