aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2022-04-27 23:43:09 -0700
committerKaz Kylheku <kaz@kylheku.com>2022-04-27 23:43:09 -0700
commitf97f9b749fc7f97d932f10fb804fc630303e8569 (patch)
treec42a793954b4c79b4232eac9cea8e0c74bf0a9a7
parenteb51fcb547be06ca8852ba04f83c0dbc4c6c7f9f (diff)
downloadpw-f97f9b749fc7f97d932f10fb804fc630303e8569.tar.gz
pw-f97f9b749fc7f97d932f10fb804fc630303e8569.tar.bz2
pw-f97f9b749fc7f97d932f10fb804fc630303e8569.zip
Simplify status line clearing in quit command.
-rw-r--r--pw.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/pw.c b/pw.c
index 6ea1407..7a47699 100644
--- a/pw.c
+++ b/pw.c
@@ -510,10 +510,8 @@ int main(int argc, char **argv)
switch (ch) {
case 'q': case 3:
kbd_state = kbd_exit;
- if ((stat & (stat_eof | stat_susp | stat_htmode | stat_ttmode))) {
- clrline();
- fflush(stdout);
- }
+ clrline();
+ fflush(stdout);
break;
case 'h':
if (hpos >= 8) {