Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 7475 in orxonox.OLD for trunk/src


Ignore:
Timestamp:
May 2, 2006, 7:14:17 PM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: ShellCommand adapted too

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/lib/shell/shell_completion.cc

    r7421 r7475  
    295295          !nocaseCmp((*bo)->getName(), completionBegin, searchLength))
    296296      {
    297         this->completionList.push_back(CompletionElement((*bo)->getName(), type));
     297        // set all the spaces to "\\ "
     298        std::string name = (*bo)->getName();
     299        for(unsigned int i = 0; i < name.size(); i++)
     300        {
     301          if (name[i] == ' ')
     302            name.replace(i++, 1, "\\ ");
     303        }
     304        this->completionList.push_back(CompletionElement(name, type));
    298305      }
    299306    }
Note: See TracChangeset for help on using the changeset viewer.