Reset Console editbox before command execution

This commit is contained in:
Stanislav Bas 2015-06-05 22:00:02 +03:00
parent c40987338d
commit 58e2d3711f

View file

@ -294,10 +294,9 @@ namespace MWGui
mCommandHistory.push_back(cm);
mCurrent = mCommandHistory.end();
mEditString.clear();
mCommandLine->setCaption("");
execute (cm);
mCommandLine->setCaption("");
}
std::string Console::complete( std::string input, std::vector<std::string> &matches )