summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--usr.bin/tmux/window.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/usr.bin/tmux/window.c b/usr.bin/tmux/window.c
index 2dbc0673324..565f45ae933 100644
--- a/usr.bin/tmux/window.c
+++ b/usr.bin/tmux/window.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: window.c,v 1.32 2009/10/11 10:04:27 nicm Exp $ */
+/* $OpenBSD: window.c,v 1.33 2009/10/19 13:18:13 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -632,6 +632,9 @@ window_pane_parse(struct window_pane *wp)
{
size_t new_size;
+ if (wp->mode != NULL)
+ return;
+
new_size = BUFFER_USED(wp->in) - wp->pipe_off;
if (wp->pipe_fd != -1 && new_size > 0)
buffer_write(wp->pipe_buf, BUFFER_OUT(wp->in), new_size);