diff --git a/src/aline.c b/src/aline.c index 791ca8b..03e8465 100644 --- a/src/aline.c +++ b/src/aline.c @@ -175,6 +175,7 @@ alineInput(FILE *fp, const char *prompt, char *buf, size_t size) unsigned i; int ch, pcol, pos[2], prevline = lastline; + (void) fflush(stdout); if (!isatty(fileno(fp))) { *buf = '\0'; clearerr(fp); errno = 0;