summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@cvs.openbsd.org>2009-10-19 13:18:14 +0000
committerNicholas Marriott <nicm@cvs.openbsd.org>2009-10-19 13:18:14 +0000
commita2e53144ad3fac8273bef6d8fdc09845029391e9 (patch)
tree8eefd1560ffe70f2c8680511af7b77f2648f48e9
parent13406a4edf372338e2bb8a79abbf0802e3354e00 (diff)
Stop updating the screen when not in output mode, stops copy mode getting
confused.
-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);