From 13458702a9ddb24dcca33d0dd5df6e9a34ca1402 Mon Sep 17 00:00:00 2001 From: Martin Vidner Date: Tue, 13 Feb 2007 09:53:33 +0000 Subject: [PATCH] Echo a newline after the user enters EOF. --- src/zypper.cc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/zypper.cc b/src/zypper.cc index 9c1f930..679cf2a 100644 --- a/src/zypper.cc +++ b/src/zypper.cc @@ -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); -- 2.7.4