summaryrefslogtreecommitdiff
path: root/usr.bin/tmux
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@cvs.openbsd.org>2009-11-27 09:41:04 +0000
committerNicholas Marriott <nicm@cvs.openbsd.org>2009-11-27 09:41:04 +0000
commit0ecd0155a2615c86d48954625216a41358beba94 (patch)
tree357e577a7c5f999b34f898798d9572916b4e4f0b /usr.bin/tmux
parent7cc3300fabc3cf239380c24516b1e0319d8c9885 (diff)
Add a couple of comments.
Diffstat (limited to 'usr.bin/tmux')
-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;