|
|
|
@ -213,7 +213,7 @@ namespace MWGui
|
|
|
|
|
{
|
|
|
|
|
std::vector<std::string> matches;
|
|
|
|
|
listNames();
|
|
|
|
|
mCommandLine->setCaption(complete( mCommandLine->getCaption(), matches ));
|
|
|
|
|
mCommandLine->setCaption(complete( mCommandLine->getOnlyText(), matches ));
|
|
|
|
|
#if 0
|
|
|
|
|
int i = 0;
|
|
|
|
|
for(std::vector<std::string>::iterator it=matches.begin(); it < matches.end(); ++it,++i )
|
|
|
|
@ -232,7 +232,7 @@ namespace MWGui
|
|
|
|
|
{
|
|
|
|
|
// If the user was editing a string, store it for later
|
|
|
|
|
if(mCurrent == mCommandHistory.end())
|
|
|
|
|
mEditString = mCommandLine->getCaption();
|
|
|
|
|
mEditString = mCommandLine->getOnlyText();
|
|
|
|
|
|
|
|
|
|
if(mCurrent != mCommandHistory.begin())
|
|
|
|
|
{
|
|
|
|
@ -257,7 +257,7 @@ namespace MWGui
|
|
|
|
|
|
|
|
|
|
void Console::acceptCommand(MyGUI::EditBox* _sender)
|
|
|
|
|
{
|
|
|
|
|
const std::string &cm = mCommandLine->getCaption();
|
|
|
|
|
const std::string &cm = mCommandLine->getOnlyText();
|
|
|
|
|
if(cm.empty()) return;
|
|
|
|
|
|
|
|
|
|
// Add the command to the history, and set the current pointer to
|
|
|
|
|