# # # patch "commands.cc" # from [a4dd5e2fc7f1d92d16713ab3f6bf287c566d647e] # to [b1ffc980fe2d075dc681e7e535546562390b53ba] # ============================================================ --- commands.cc a4dd5e2fc7f1d92d16713ab3f6bf287c566d647e +++ commands.cc b1ffc980fe2d075dc681e7e535546562390b53ba @@ -325,8 +325,6 @@ namespace commands { iter != children().end(); iter++) { command * child = *iter; - if (child->hidden()) - continue; for (names_set::const_iterator iter2 = child->names().begin(); iter2 != child->names().end(); iter2++) @@ -335,7 +333,8 @@ namespace commands { caux.push_back(*iter2); if (prefix == *iter2) matches[caux] = child; - else if (prefix().length() < (*iter2)().length()) + else if (!child->hidden() && + prefix().length() < (*iter2)().length()) { utf8 p(string((*iter2)(), 0, prefix().length())); if (prefix == p)