mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-09-01 09:17:19 +02:00
Parser
- When locating a command, all nodes must be scanned, not just the unknown ones.
This commit is contained in:
parent
bea4c6fd77
commit
3eb611057d
1 changed files with 1 additions and 1 deletions
|
@ -808,7 +808,7 @@ std::string Parser::getLimit () const
|
||||||
std::string Parser::getCommand () const
|
std::string Parser::getCommand () const
|
||||||
{
|
{
|
||||||
std::vector <Tree*> nodes;
|
std::vector <Tree*> nodes;
|
||||||
collect (nodes, false);
|
collect (nodes, true);
|
||||||
std::vector <Tree*>::iterator i;
|
std::vector <Tree*>::iterator i;
|
||||||
for (i = nodes.begin (); i != nodes.end (); ++i)
|
for (i = nodes.begin (); i != nodes.end (); ++i)
|
||||||
if ((*i)->hasTag ("CMD"))
|
if ((*i)->hasTag ("CMD"))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue