diff options
-rw-r--r-- | pw.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -836,8 +836,6 @@ int main(int argc, char **argv) if (ch == EOF) { if (feof(stdin) || (errno != EAGAIN && errno != EWOULDBLOCK)) { nfds = 1; - stat |= stat_eof; - stat = redraw(circbuf, nlines, hpos, hist, columns, stat, curcmd); if (!ferror(stdin)) exit_status = 0; if (auto_quit) { @@ -845,6 +843,9 @@ int main(int argc, char **argv) clrline(stat); break; } + stat |= stat_eof; + clrline(stat); + drawstatus(hist, columns, stat, curcmd); } clearerr(stdin); } else { |