mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +02:00
Bug #703 - /foo/bar/g doesn't operate globally on annotations
- Fixed bug #703 that was failing to reset a moving pattern cursor between annotations. - Added unit tests to verify this functionality.
This commit is contained in:
parent
437bb95f01
commit
a1d47e9509
3 changed files with 83 additions and 1 deletions
|
@ -205,10 +205,10 @@ void Subst::apply (
|
|||
|
||||
// Perform all subs on annotations.
|
||||
counter = 0;
|
||||
pattern = 0;
|
||||
std::vector <Att>::iterator i;
|
||||
for (i = annotations.begin (); i != annotations.end (); ++i)
|
||||
{
|
||||
pattern = 0;
|
||||
std::string annotation = i->value ();
|
||||
while ((pattern = find (annotation, mFrom, pattern, sensitive)) != std::string::npos)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue