diff options
-rw-r--r-- | pw.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -430,15 +430,15 @@ int main(int argc, char **argv) if (ch == EOF) { if (feof(stdin) || (errno != EAGAIN && errno != EWOULDBLOCK)) { nfds = 1; - if (!auto_quit) - stat |= stat_eof; - redraw(circbuf, nlines, hpos, columns, stat, curcmd); stat |= stat_eof; + redraw(circbuf, nlines, hpos, columns, stat, curcmd); stat &= ~stat_dirty; if (!ferror(stdin)) exit_status = 0; - if (auto_quit) + if (auto_quit) { + clrline(); break; + } } clearerr(stdin); } else { |