lib: multiBalanceReport: Get --drop working with multiBalanceReports.

This commit is contained in:
Stephen Morgan 2020-06-13 22:21:14 +10:00
parent 6467c252c7
commit cd41404fd4

View File

@ -348,7 +348,7 @@ displayedAccounts ropts q valuedaccts =
displayedName name
| depth == 0 = DisplayName "..." "..." 0
| tree_ ropts = treeDisplayName name
| otherwise = flatDisplayName name
| otherwise = DisplayName name (accountNameDrop (drop_ ropts) name) 0
where
elided = accountNameFromComponents . reverse . map accountLeafName $
name : takeWhile (not . isDisplayed) parents