aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@openbsd.org>2009-11-27 09:41:03 +0000
committerNicholas Marriott <nicm@openbsd.org>2009-11-27 09:41:03 +0000
commit2182e1badcc161c6e6f1ef6dec21a57cc510299e (patch)
treeb1614b50954f5c9a59b3f11a22c0bf8fabb7cb3f
parent106ee8f30a27d60aa4e113e17ba48792cfc64e50 (diff)
downloadrtmux-2182e1badcc161c6e6f1ef6dec21a57cc510299e.tar.gz
rtmux-2182e1badcc161c6e6f1ef6dec21a57cc510299e.tar.bz2
rtmux-2182e1badcc161c6e6f1ef6dec21a57cc510299e.zip
Add a couple of comments.
-rw-r--r--input.c1
-rw-r--r--tty.c1
2 files changed, 2 insertions, 0 deletions
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;