mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
TW-1377
- TW-1377 Tags in default.command are treated as "operator text".
This commit is contained in:
parent
b540257a34
commit
1a17aac77b
2 changed files with 7 additions and 3 deletions
|
@ -133,6 +133,7 @@
|
|||
- TW-1366 In diagnostics it's called 'Cert', and in config it's called
|
||||
'certificate' (thanks to Jack).
|
||||
- TW-1373 taskrc.vim VIM syntax file updated (thanks to lolilolicon).
|
||||
- TW-1377 Tags in default.command are treated as "operator text".
|
||||
- TW-1381 blocking report exits with "Unknown error" and exit code 3.
|
||||
- TW-1383 Segmentation fault running import-yaml.pl with included example
|
||||
(thanks to Markus Beppler).
|
||||
|
|
|
@ -567,13 +567,16 @@ void Parser::injectDefaults ()
|
|||
// because captureFirst inserts args immediately after the command, and
|
||||
// so has the effect of reversing the list.
|
||||
std::vector <std::string> args;
|
||||
Lexer::token_split (args, defaultCommand);
|
||||
split (args, defaultCommand, ' ');
|
||||
std::vector <std::string>::reverse_iterator r;
|
||||
for (r = args.rbegin (); r != args.rend (); ++r)
|
||||
{
|
||||
if (*r != "")
|
||||
{
|
||||
Tree* t = captureFirst (*r);
|
||||
t->tag ("DEFAULT");
|
||||
}
|
||||
}
|
||||
|
||||
std::string combined;
|
||||
std::vector <Tree*>::iterator i;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue