mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-08-30 02:17:21 +02:00
CLI
- ::unsweetenAttributeModifiers no longer clobbers non-FILTER args.
This commit is contained in:
parent
720cc57192
commit
f809f2d819
1 changed files with 133 additions and 131 deletions
|
@ -640,6 +640,8 @@ void CLI::unsweetenAttributeModifiers ()
|
|||
std::vector <A> reconstructed;
|
||||
std::vector <A>::iterator a;
|
||||
for (a = _args.begin (); a != _args.end (); ++a)
|
||||
{
|
||||
if (a->hasTag ("FILTER"))
|
||||
{
|
||||
// Look for a valid attribute name.
|
||||
bool found = false;
|
||||
|
@ -760,8 +762,6 @@ void CLI::unsweetenAttributeModifiers ()
|
|||
{
|
||||
op.attribute ("raw", "~");
|
||||
op.tag ("OP");
|
||||
|
||||
|
||||
#if defined (DARWIN)
|
||||
rhs.attribute ("raw", value);
|
||||
#elif defined (SOLARIS)
|
||||
|
@ -774,7 +774,6 @@ void CLI::unsweetenAttributeModifiers ()
|
|||
{
|
||||
op.attribute ("raw", "!~");
|
||||
op.tag ("OP");
|
||||
|
||||
#if defined (DARWIN)
|
||||
rhs.attribute ("raw", value);
|
||||
#elif defined (SOLARIS)
|
||||
|
@ -799,6 +798,9 @@ void CLI::unsweetenAttributeModifiers ()
|
|||
if (!found)
|
||||
reconstructed.push_back (*a);
|
||||
}
|
||||
else
|
||||
reconstructed.push_back (*a);
|
||||
}
|
||||
|
||||
_args = reconstructed;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue