mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
CLI
- ::unsweetenTags no longer clobbers non-FILTER args.
This commit is contained in:
parent
cd8f7ddac4
commit
f862ad15e6
1 changed files with 25 additions and 20 deletions
|
@ -505,6 +505,8 @@ void CLI::unsweetenTags ()
|
|||
std::vector <A> reconstructed;
|
||||
std::vector <A>::iterator a;
|
||||
for (a = _args.begin (); a != _args.end (); ++a)
|
||||
{
|
||||
if (a->hasTag ("FILTER"))
|
||||
{
|
||||
Nibbler n (a->attribute ("raw"));
|
||||
std::string tag;
|
||||
|
@ -533,6 +535,9 @@ void CLI::unsweetenTags ()
|
|||
else
|
||||
reconstructed.push_back (*a);
|
||||
}
|
||||
else
|
||||
reconstructed.push_back (*a);
|
||||
}
|
||||
|
||||
_args = reconstructed;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue