aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--pw.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/pw.c b/pw.c
index ee34f18..379bc8a 100644
--- a/pw.c
+++ b/pw.c
@@ -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 {