summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornicm <nicm@openbsd.org>2009-11-27 09:41:03 +0000
committernicm <nicm@openbsd.org>2009-11-27 09:41:03 +0000
commita3ac0349068ab88a5eb4a519b7f19d43d5342e14 (patch)
tree5e886ad84dbd5bdb34147106b1ac8f5d2b3ae93b
parenttypo in documentation; missing full stop. (diff)
downloadwireguard-openbsd-a3ac0349068ab88a5eb4a519b7f19d43d5342e14.tar.xz
wireguard-openbsd-a3ac0349068ab88a5eb4a519b7f19d43d5342e14.zip
Add a couple of comments.
-rw-r--r--usr.bin/tmux/input.c3
-rw-r--r--usr.bin/tmux/tty.c3
2 files changed, 4 insertions, 2 deletions
diff --git a/usr.bin/tmux/input.c b/usr.bin/tmux/input.c
index f393b093d02..0cff5a316e6 100644
--- a/usr.bin/tmux/input.c
+++ b/usr.bin/tmux/input.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: input.c,v 1.22 2009/11/04 22:43:11 nicm Exp $ */
+/* $OpenBSD: input.c,v 1.23 2009/11/27 09:41:03 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -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/usr.bin/tmux/tty.c b/usr.bin/tmux/tty.c
index e04fbf25262..9099bf93af2 100644
--- a/usr.bin/tmux/tty.c
+++ b/usr.bin/tmux/tty.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: tty.c,v 1.74 2009/11/26 22:47:14 nicm Exp $ */
+/* $OpenBSD: tty.c,v 1.75 2009/11/27 09:41:03 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -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;