Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 8816


Ignore:
Timestamp:
Aug 2, 2011, 10:36:41 PM (13 years ago)
Author:
landauf
Message:

fixed bug in auto completion function

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/output/src/libraries/core/command/ArgumentCompletionFunctions.cc

    r8803 r8816  
    100100                const std::map<std::string, std::map<std::string, ConsoleCommand*> >& commands = ConsoleCommand::getCommands();
    101101                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))
    103103                        groupList.push_back(ArgumentCompletionListElement(it_group->first, getLowercase(it_group->first)));
    104104
     
    113113                    // add the shortcuts
    114114                    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))
    116116                            groupList.push_back(ArgumentCompletionListElement(it_command->first, getLowercase(it_command->first)));
    117117                }
Note: See TracChangeset for help on using the changeset viewer.