mirror of
https://github.com/simonmichael/hledger.git
synced 2024-12-26 20:02:27 +03:00
ui: setFilter: note error-ignoring behaviour
This commit is contained in:
parent
b13df845c0
commit
dbe7ef0157
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user