mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
Filter
- Corrected use of rc.debug.parser. - Added notes for fixing ::pendingOnly.
This commit is contained in:
parent
0a7d02787d
commit
f804a43cee
1 changed files with 4 additions and 1 deletions
|
@ -146,7 +146,7 @@ void Filter::subset (std::vector <Task>& output)
|
|||
|
||||
// Debug output from Eval during compilation is useful. During evaluation
|
||||
// it is mostly noise.
|
||||
eval.debug (context.config.getInteger ("debug.parser") >= 1 ? true : false);
|
||||
eval.debug (context.config.getInteger ("debug.parser") >= 2 ? true : false);
|
||||
eval.compileExpression (filterExpr);
|
||||
eval.debug (false);
|
||||
|
||||
|
@ -225,6 +225,9 @@ bool Filter::pendingOnly ()
|
|||
int countOr = 0;
|
||||
int countXor = 0;
|
||||
|
||||
// TODO Use an int index, and ensure that 'status', '==' and 'pending/waiting'
|
||||
// are consecutive.
|
||||
|
||||
std::vector <A>::iterator a;
|
||||
for (a = context.cli._args.begin (); a != context.cli._args.end (); ++a)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue