Echo a newline after the user enters EOF.
authorMartin Vidner <mvidner@suse.cz>
Tue, 13 Feb 2007 09:53:33 +0000 (09:53 +0000)
committerMartin Vidner <mvidner@suse.cz>
Tue, 13 Feb 2007 09:53:33 +0000 (09:53 +0000)
src/zypper.cc

index 9c1f930..679cf2a 100644 (file)
@@ -1010,7 +1010,11 @@ void command_shell ()
 
     string command = sh_argv[0]? sh_argv[0]: "";
 
-    if (command == "exit" || command == "quit" || command == "\004")
+    if (command == "\004") {
+      loop = false;
+      cout << endl;
+    }
+    else if (command == "exit" || command == "quit")
       loop = false;
     else
       safe_one_command (command, sh_argc, sh_argv);