aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/9term/win.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/cmd/9term/win.c')
-rw-r--r--src/cmd/9term/win.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/cmd/9term/win.c b/src/cmd/9term/win.c
index 926d806b..bed7f2aa 100644
--- a/src/cmd/9term/win.c
+++ b/src/cmd/9term/win.c
@@ -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);