mirror of
https://github.com/tmux/tmux.git
synced 2025-09-04 15:26:58 +00:00
The redraw callback could be fired with a NULL pane if it updates while
in a mode, problem reported by Martin Vahlensieck.
This commit is contained in:
@ -103,7 +103,8 @@ screen_write_redraw_cb(const struct tty_ctx *ttyctx)
|
|||||||
{
|
{
|
||||||
struct window_pane *wp = ttyctx->arg;
|
struct window_pane *wp = ttyctx->arg;
|
||||||
|
|
||||||
wp->flags |= PANE_REDRAW;
|
if (wp != NULL)
|
||||||
|
wp->flags |= PANE_REDRAW;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Update context for client. */
|
/* Update context for client. */
|
||||||
|
Reference in New Issue
Block a user