Changeset 7475 in orxonox.OLD for trunk/src/lib
- Timestamp:
- May 2, 2006, 7:14:17 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/shell/shell_completion.cc
r7421 r7475 295 295 !nocaseCmp((*bo)->getName(), completionBegin, searchLength)) 296 296 { 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)); 298 305 } 299 306 }
Note: See TracChangeset
for help on using the changeset viewer.