Print newline on EOF
authorCarl Worth <cworth@cworth.org>
Tue, 17 Apr 2007 18:13:32 +0000 (11:13 -0700)
committerCarl Worth <cworth@cworth.org>
Tue, 17 Apr 2007 18:13:32 +0000 (11:13 -0700)
mnemon.c

index 67b5889dcfa1040d56c17a33bad250906bd94420..1eebd20df491681e42a21190451ec55116f3893b 100644 (file)
--- a/mnemon.c
+++ b/mnemon.c
@@ -637,8 +637,10 @@ mnemon_do_challenges (mnemon_t *mnemon)
        printf ("%s\n", item->challenge);
 
        response = readline ("> ");
-       if (response == NULL)
+       if (response == NULL) {
+           printf ("\n");
            break;
+       }
 
        correct = (strcmp (response, item->response) == 0);