## STAGING
* tide: assert fails in mouse handling code for invalid mouse button
-* tide: filter commands don't always select the output like they should
* tide: move looping of cursor movements into selmoveby
* all: eliminate multiple return statements and other lint
* tide: byrune, byword, byline functions should be hidden in buf.c
static void pipe_read(Job* job)
{
struct PipeData* pipedata = job->data;
- char buffer[16385];
+ char buffer[32769];
errno = 0;
long nread = read(job->fd, buffer, sizeof(buffer)-1);
if (nread <= 0)
job->readfn(job);
if (job->writefn && (events & POLLOUT))
job->writefn(job);
- if ((events & (POLLHUP|POLLERR)) || (!job->readfn && !job->writefn))
+ if ((events & (POLLHUP|POLLERR) && !job->readfn) || (!job->readfn && !job->writefn))
job_finish(job);
}