mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +02:00
Parser
- ::findCommand moves branch pruning out of the iterated loop.
This commit is contained in:
parent
6dad8ddb1b
commit
3fce252461
1 changed files with 1 additions and 1 deletions
|
@ -466,9 +466,9 @@ void Parser::findCommand ()
|
|||
if (canonicalize (command, "cmd", (*i)->attribute ("raw")))
|
||||
{
|
||||
(*i)->unTag ("?");
|
||||
(*i)->removeAllBranches ();
|
||||
(*i)->tag ("CMD");
|
||||
(*i)->attribute ("canonical", command);
|
||||
(*i)->removeAllBranches ();
|
||||
|
||||
if (exactMatch ("writecmd", command)) (*i)->tag ("WRITECMD");
|
||||
else if (exactMatch ("readcmd", command)) (*i)->tag ("READCMD");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue