From acb01d68da78506147356fee4a0efbb32a5b9871 Mon Sep 17 00:00:00 2001 From: Kaz Kylheku Date: Wed, 27 Apr 2022 22:25:10 -0700 Subject: On auto-exit, clear status line of all content. --- pw.c | 8 ++++---- 1 file 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 { -- cgit v1.2.3