win: scroll

R=rsc
CC=codebot
http://codereview.appspot.com/643041
This commit is contained in:
Eoghan Sherry 2010-03-19 13:10:14 -07:00 committed by Russ Cox
parent be856b940f
commit bea7c49aad

View file

@ -535,6 +535,9 @@ stdoutproc(void *v)
}
if(fswrite(dfd, buf, n) != n)
error("stdout writing body");
/* Make sure acme scrolls to the end of the above write. */
if(fswrite(dfd, nil, 0) != 0)
error("stdout flushing body");
q.p += nrunes(buf, n);
qunlock(&q.lk);
memmove(buf, hold, npart);