Sync OpenBSD patchset 635:

Instead of bailing out on the first configuration file error, carry on,
collecting all the errors, then start with the active window in more mode
displaying them.
This commit is contained in:
Tiago Cunha
2010-02-08 18:10:07 +00:00
parent 676d0809d2
commit a32d095c97
8 changed files with 120 additions and 70 deletions

View File

@ -1,4 +1,4 @@
/* $Id: window.c,v 1.125 2009-12-04 22:14:47 tcunha Exp $ */
/* $Id: window.c,v 1.126 2010-02-08 18:10:07 tcunha Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@ -664,9 +664,6 @@ window_pane_parse(struct window_pane *wp)
char *data;
size_t new_size;
if (wp->mode != NULL)
return;
new_size = EVBUFFER_LENGTH(wp->event->input) - wp->pipe_off;
if (wp->pipe_fd != -1 && new_size > 0) {
data = EVBUFFER_DATA(wp->event->input);