mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +02:00
CmdCustom
- Removed redundant pair of parentheses from custom report filters. Only one pair is needed.
This commit is contained in:
parent
d0ae05ba1c
commit
12941488ce
1 changed files with 0 additions and 15 deletions
|
@ -81,18 +81,6 @@ int CmdCustom::execute (std::string& output)
|
|||
split (sortOrder, reportSort, ',');
|
||||
validateSortColumns (sortOrder);
|
||||
|
||||
/*
|
||||
TODO Wow, this addition causes memory errors.
|
||||
|
||||
// Surround the command-line filter with parentheses, to protect it from
|
||||
// the 'and' placed between the report filter and the command line filter.
|
||||
context.parser.captureFirst ("(");
|
||||
context.parser.captureLast (")");
|
||||
*/
|
||||
|
||||
if (reportFilter != "")
|
||||
context.cli.add ("(");
|
||||
|
||||
// Prepend the argument list with those from the report filter.
|
||||
std::string lexeme;
|
||||
Lexer::Type type;
|
||||
|
@ -105,9 +93,6 @@ int CmdCustom::execute (std::string& output)
|
|||
context.cli.add (lexeme);
|
||||
}
|
||||
|
||||
if (reportFilter != "")
|
||||
context.cli.add (")");
|
||||
|
||||
std::vector <std::string>::reverse_iterator arg;
|
||||
for (arg = filterArgs.rbegin (); arg != filterArgs.rend (); ++ arg)
|
||||
context.parser.captureFirst (*arg);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue