yaz-client: ctrl-d print \n before exiting
authorAdam Dickmeiss <adam@indexdata.dk>
Thu, 21 Jan 2010 08:22:47 +0000 (09:22 +0100)
committerAdam Dickmeiss <adam@indexdata.dk>
Thu, 21 Jan 2010 08:22:47 +0000 (09:22 +0100)
Some small things just matter much.

client/client.c

index cb783b2..d7a0ec1 100644 (file)
@@ -4965,7 +4965,10 @@ static void client(void)
         {
             line_in=readline(C_PROMPT);
             if (!line_in)
+            {
+                putchar("\n");
                 break;
+            }
 #if HAVE_READLINE_HISTORY_H
             if (*line_in)
                 add_history(line_in);