aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--pw.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/pw.c b/pw.c
index 60cdf13..1dc2a40 100644
--- a/pw.c
+++ b/pw.c
@@ -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 {