mirror of
https://github.com/GothenburgBitFactory/timewarrior.git
synced 2025-06-26 10:54:28 +02:00
Restrict application of exclusions to range before now for open intervals
- Closes #370 Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
This commit is contained in:
parent
26fdebf754
commit
11877d3fff
1 changed files with 5 additions and 0 deletions
|
@ -311,6 +311,11 @@ std::vector <Interval> flatten (
|
|||
Datetime now;
|
||||
for (auto& result : subtractRanges ({interval}, enclosed))
|
||||
{
|
||||
if (interval.is_open() && result.start > now)
|
||||
{
|
||||
break;
|
||||
}
|
||||
|
||||
Interval chunk {interval};
|
||||
chunk.setRange (result);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue