From 9730b69a052e393050d19c84415c3f0dd7bb9bcb Mon Sep 17 00:00:00 2001 From: Simon Michael Date: Wed, 18 Nov 2020 17:20:05 -0800 Subject: [PATCH] ;ui: register: fix one-line amount formatting (#1358) --- hledger-ui/Hledger/UI/RegisterScreen.hs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hledger-ui/Hledger/UI/RegisterScreen.hs b/hledger-ui/Hledger/UI/RegisterScreen.hs index 77631e364..e5e59e2d8 100644 --- a/hledger-ui/Hledger/UI/RegisterScreen.hs +++ b/hledger-ui/Hledger/UI/RegisterScreen.hs @@ -94,8 +94,8 @@ rsInit d reset ui@UIState{aopts=_uopts@UIOpts{cliopts_=CliOpts{reportspec_=rspec [s] -> s ss -> intercalate ", " ss -- _ -> "" -- should do this if accounts field width < 30 - ,rsItemChangeAmount = showMixed showAmountWithoutPrice Nothing (Just 32) False change - ,rsItemBalanceAmount = showMixed showAmountWithoutPrice Nothing (Just 32) False bal + ,rsItemChangeAmount = showMixedOneLine showAmountWithoutPrice Nothing (Just 32) False change + ,rsItemBalanceAmount = showMixedOneLine showAmountWithoutPrice Nothing (Just 32) False bal ,rsItemTransaction = t } -- blank items are added to allow more control of scroll position; we won't allow movement over these