Skip to content

Commit 62424a3

Browse files
author
peter
committed
better quit
1 parent ef2609d commit 62424a3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

main.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -383,10 +383,10 @@ int main(int argc, const char **argv)
383383
int cmd_mode = 0;
384384
printf("> "); fflush(stdout);
385385
p = get_input();
386-
if (!p)
387-
break;
388-
if (!strcmp(p, "/quit"))
386+
if (!p || !strcmp(p, "/quit")) {
387+
printf("\n");
389388
break;
389+
}
390390
rc = 1; str = NULL;
391391

392392
if (*p == '/') {

0 commit comments

Comments
 (0)