summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/Root.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Root.cpp b/src/Root.cpp
index f15bfd366..1c81878f9 100644
--- a/src/Root.cpp
+++ b/src/Root.cpp
@@ -77,11 +77,11 @@ void cRoot::InputThread(void * a_Params)
while (!(self.m_bStop || self.m_bRestart) && std::cin.good())
{
- std::string Command;
+ AString Command;
std::getline(std::cin, Command);
if (!Command.empty())
- {
- self.ExecuteConsoleCommand(Command, Output);
+ {
+ self.ExecuteConsoleCommand(TrimString(Command), Output);
}
}