From 2182e1badcc161c6e6f1ef6dec21a57cc510299e Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Fri, 27 Nov 2009 09:41:03 +0000 Subject: [PATCH] Add a couple of comments. --- input.c | 1 + tty.c | 1 + 2 files changed, 2 insertions(+) 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;