diff options
author | 2009-10-19 13:18:13 +0000 | |
---|---|---|
committer | 2009-10-19 13:18:13 +0000 | |
commit | 1d1b549f8d10be76b07d547ea04ab57b05cd1c61 (patch) | |
tree | 6ed3db366c301f84a397fb9f0d14aa401ee1cb21 | |
parent | sync to 1.9.6: u_char lives in <sys/types.h> (diff) | |
download | wireguard-openbsd-1d1b549f8d10be76b07d547ea04ab57b05cd1c61.tar.xz wireguard-openbsd-1d1b549f8d10be76b07d547ea04ab57b05cd1c61.zip |
Stop updating the screen when not in output mode, stops copy mode getting
confused.
-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); |