diff options
author | 2020-06-18 08:41:56 +0000 | |
---|---|---|
committer | 2020-06-18 08:41:56 +0000 | |
commit | 3f192e30f23e90137b18e7e3e9724e14dfe4f842 (patch) | |
tree | 6f128ec3ce0ef8dfd98a2ceb42e615d832b0718c /usr.bin/tmux/screen-write.c | |
parent | Add a flag to make a client wait for an empty line before exiting in (diff) | |
download | wireguard-openbsd-3f192e30f23e90137b18e7e3e9724e14dfe4f842.tar.xz wireguard-openbsd-3f192e30f23e90137b18e7e3e9724e14dfe4f842.zip |
The redraw callback could be fired with a NULL pane if it updates while
in a mode, problem reported by Martin Vahlensieck.
Diffstat (limited to 'usr.bin/tmux/screen-write.c')
-rw-r--r-- | usr.bin/tmux/screen-write.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.bin/tmux/screen-write.c b/usr.bin/tmux/screen-write.c index 81a1a74f72d..2141aef4c01 100644 --- a/usr.bin/tmux/screen-write.c +++ b/usr.bin/tmux/screen-write.c @@ -1,4 +1,4 @@ -/* $OpenBSD: screen-write.c,v 1.184 2020/06/02 20:51:46 nicm Exp $ */ +/* $OpenBSD: screen-write.c,v 1.185 2020/06/18 08:41:56 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com> @@ -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. */ |