Changeset 8816 for code/branches/output/src/libraries/core/command
- Timestamp:
- Aug 2, 2011, 10:36:41 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/output/src/libraries/core/command/ArgumentCompletionFunctions.cc
r8803 r8816 100 100 const std::map<std::string, std::map<std::string, ConsoleCommand*> >& commands = ConsoleCommand::getCommands(); 101 101 for (std::map<std::string, std::map<std::string, ConsoleCommand*> >::const_iterator it_group = commands.begin(); it_group != commands.end(); ++it_group) 102 if (groupIsVisible(it_group->second, bOnlyShowHidden) && it_group->first != "" && (fragmentLC == "" || getLowercase(it_group->first).find _first_of(fragmentLC) == 0))102 if (groupIsVisible(it_group->second, bOnlyShowHidden) && it_group->first != "" && (fragmentLC == "" || getLowercase(it_group->first).find(fragmentLC) == 0)) 103 103 groupList.push_back(ArgumentCompletionListElement(it_group->first, getLowercase(it_group->first))); 104 104 … … 113 113 // add the shortcuts 114 114 for (std::map<std::string, ConsoleCommand*>::const_iterator it_command = it_group->second.begin(); it_command != it_group->second.end(); ++it_command) 115 if (it_command->second->isActive() && it_command->second->hasAccess() && (!it_command->second->isHidden())^bOnlyShowHidden && (fragmentLC == "" || getLowercase(it_command->first).find _first_of(fragmentLC) == 0))115 if (it_command->second->isActive() && it_command->second->hasAccess() && (!it_command->second->isHidden())^bOnlyShowHidden && (fragmentLC == "" || getLowercase(it_command->first).find(fragmentLC) == 0)) 116 116 groupList.push_back(ArgumentCompletionListElement(it_command->first, getLowercase(it_command->first))); 117 117 }
Note: See TracChangeset
for help on using the changeset viewer.