169c169,173
< STDOUT->flush();
---
> # Normally we flush after the postcontext lines are printed, but if
> # the user has decreed that there aren't any we need to flush now
> if ($postcontext == 0) {
> STDOUT->flush();
> }
294d297
< $postcontext--;
297a301,303
> if (--$postcontext == 0) {
> STDOUT->flush();
> }