- When locating a command, all nodes must be scanned, not just the unknown ones.
This commit is contained in:
Paul Beckingham 2014-08-17 14:30:19 -04:00
parent bea4c6fd77
commit 3eb611057d

View file

@ -808,7 +808,7 @@ std::string Parser::getLimit () const
std::string Parser::getCommand () const
{
std::vector <Tree*> nodes;
collect (nodes, false);
collect (nodes, true);
std::vector <Tree*>::iterator i;
for (i = nodes.begin (); i != nodes.end (); ++i)
if ((*i)->hasTag ("CMD"))