mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-08-27 10:07:19 +02:00
Enhancement/Fixes - Duration
- Reorganized Duration::valid and Duration::parse to use the same list of supported constructs. - Added missing copy constructor. - Added missing ctor initializer list. - Corrected handling of negative time_t values. - Added support for more duration formats. - Corrected autoComplete use. - Added Duration::negative. - Corrected unit test descriptions.
This commit is contained in:
parent
cb4fe4fffb
commit
123a46eef9
4 changed files with 313 additions and 285 deletions
|
@ -195,8 +195,8 @@ int autoComplete (
|
|||
}
|
||||
|
||||
// Maintain a list of partial matches.
|
||||
if (length <= item->length () &&
|
||||
partial == item->substr (0, length))
|
||||
else if (length <= item->length () &&
|
||||
partial == item->substr (0, length))
|
||||
matches.push_back (*item);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue