mirror of
https://github.com/simonmichael/hledger.git
synced 2024-11-08 07:09:28 +03:00
make groupByDateSpan return data when first period has unbounded begin
This commit is contained in:
parent
c20ebae26d
commit
97943b206c
@ -317,7 +317,7 @@ groupByDateSpan showempty date colspans =
|
||||
groupByCols (c:cs) ps = (c, map snd matches) : groupByCols cs later
|
||||
where (matches, later) = span ((spanEnd c >) . Just . fst) ps
|
||||
|
||||
beforeStart = maybe (const True) (>) $ spanStart =<< headMay colspans
|
||||
beforeStart = maybe (const False) (>) $ spanStart =<< headMay colspans
|
||||
|
||||
-- | Calculate the intersection of a number of datespans.
|
||||
spansIntersect [] = nulldatespan
|
||||
|
Loading…
Reference in New Issue
Block a user