Index: shell/src/Main.cpp |
=================================================================== |
--- a/shell/src/Main.cpp |
+++ b/shell/src/Main.cpp |
@@ -31,17 +31,17 @@ namespace |
void Add(CommandMap& commands, Command* command) |
{ |
commands[command->name] = command; |
} |
bool ReadCommandLine(std::string& commandLine) |
{ |
std::cout << "> "; |
- const bool success = std::getline(std::cin, commandLine); |
+ const bool success = std::getline(std::cin, commandLine).good(); |
if (!success) |
std::cout << std::endl; |
return success; |
} |
void ParseCommandLine(const std::string& commandLine, std::string& name, |
std::string& arguments) |
{ |