diff options
author | Nicholas Marriott <nicm@cvs.openbsd.org> | 2009-10-19 13:18:14 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@cvs.openbsd.org> | 2009-10-19 13:18:14 +0000 |
commit | a2e53144ad3fac8273bef6d8fdc09845029391e9 (patch) | |
tree | 8eefd1560ffe70f2c8680511af7b77f2648f48e9 /usr.bin/tmux/window.c | |
parent | 13406a4edf372338e2bb8a79abbf0802e3354e00 (diff) |
Stop updating the screen when not in output mode, stops copy mode getting
confused.
Diffstat (limited to 'usr.bin/tmux/window.c')
-rw-r--r-- | usr.bin/tmux/window.c | 5 |
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); |