From dbe7ef015705926316febbbdbfb5b26e17a0ccb3 Mon Sep 17 00:00:00 2001 From: Simon Michael Date: Mon, 12 Apr 2021 12:06:11 -1000 Subject: [PATCH] ui: setFilter: note error-ignoring behaviour --- hledger-ui/Hledger/UI/UIState.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hledger-ui/Hledger/UI/UIState.hs b/hledger-ui/Hledger/UI/UIState.hs index 79ed48ad0..bd95331b1 100644 --- a/hledger-ui/Hledger/UI/UIState.hs +++ b/hledger-ui/Hledger/UI/UIState.hs @@ -238,7 +238,7 @@ setFilter :: String -> UIState -> UIState setFilter s ui@UIState{aopts=uopts@UIOpts{cliopts_=copts@CliOpts{reportspec_=rspec}}} = ui{aopts=uopts{cliopts_=copts{reportspec_=update rspec}}} where - update = either (const rspec) id . updateReportSpecWith (\ropts -> ropts{querystring_=querystring}) + update = either (const rspec) id . updateReportSpecWith (\ropts -> ropts{querystring_=querystring}) -- XXX silently ignores an error querystring = words'' prefixes $ T.pack s -- | Reset some filters & toggles.