Sync OpenBSD patchset 417:

Stop updating the screen when not in output mode, stops copy mode getting
confused.
This commit is contained in:
Tiago Cunha 2009-10-23 17:09:21 +00:00
parent 2f14ef61ff
commit 9463492ac1

View File

@ -1,4 +1,4 @@
/* $Id: window.c,v 1.115 2009-10-12 00:35:08 tcunha Exp $ */
/* $Id: window.c,v 1.116 2009-10-23 17:09:21 tcunha Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@ -639,6 +639,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);