fix bug in c53c29d9
adjust changes in 8027e48 so that we see intermediate
output during flushes instead of collecting the entire
contents of the buffer before flushing (at least in the
more common case)