mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
Parser
- ::findCommand needs to scan all nodes, to find an existing CMD.
This commit is contained in:
parent
312ffe7463
commit
bc17bf7cbe
1 changed files with 1 additions and 4 deletions
|
@ -444,9 +444,8 @@ void Parser::resolveAliases ()
|
|||
// autoCompletes to a valid command/report.
|
||||
void Parser::findCommand ()
|
||||
{
|
||||
context.debug ("Parse::findCommand");
|
||||
std::vector <Tree*> nodes;
|
||||
collect (nodes);
|
||||
collect (nodes, collectAll);
|
||||
|
||||
// There can be only one.
|
||||
// Scan for an existing CMD tag, to short-circuit scanning for another.
|
||||
|
@ -474,8 +473,6 @@ void Parser::findCommand ()
|
|||
return;
|
||||
}
|
||||
}
|
||||
|
||||
context.debug (_tree->dump ());
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue