From a2e53144ad3fac8273bef6d8fdc09845029391e9 Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Mon, 19 Oct 2009 13:18:14 +0000 Subject: Stop updating the screen when not in output mode, stops copy mode getting confused. --- usr.bin/tmux/window.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'usr.bin/tmux/window.c') 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 @@ -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); -- cgit v1.2.3