Stop updating the screen when not in output mode, stops copy mode getting

confused.
This commit is contained in:
Nicholas Marriott 2009-10-19 13:18:13 +00:00
parent daa26079ee
commit 2afe395ff2

View File

@ -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);