diff --git a/input.c b/input.c index b846e060..1f529df0 100644 --- a/input.c +++ b/input.c @@ -266,6 +266,7 @@ input_parse(struct window_pane *wp) ictx->wp = wp; + /* If there is a mode set, don't want to update the screen. */ if (wp->mode == NULL) screen_write_start(&ictx->ctx, wp, &wp->base); else diff --git a/tty.c b/tty.c index 1ed965ff..07b744cb 100644 --- a/tty.c +++ b/tty.c @@ -529,6 +529,7 @@ tty_write(void (*cmdfn)( struct client *c; u_int i; + /* wp can be NULL if updating the screen but not the terminal. */ if (wp == NULL) return;