sandy

text editor
git clone git://git.suckless.org/sandy
Log | Files | Refs | README | LICENSE

commit 48a5092d92d622753dc2c84371b756c468e6e199
parent 7e15b7be05a5c12c79765eb29863f06376356638
Author: Rafael Garcia <rafael.garcia.gallego@gmail.com>
Date:   Mon, 29 Aug 2011 17:06:26 +0200

Ooops because some commands write NULL to stderr and that was reported as an error
Diffstat:
sandy.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sandy.c b/sandy.c @@ -1004,7 +1004,7 @@ i_pipetext(const char *cmd) { else FD_CLR(pout[0], &fdI); if(FD_ISSET(perr[0], &fdI) && nerr>0) { nerr = read(perr[0], ebuf, PIPESIZ); /* Blatant TODO: take last line of stderr and copy as tmptitle */ - tmptitle="WARNING! command reported an error!!!"; + if(nerr!=0) tmptitle="WARNING! command reported an error!!!"; if(nerr<0) break; } else if(nerr>0) FD_SET(perr[0], &fdI); else FD_CLR(perr[0], &fdI);