summaryrefslogtreecommitdiff
path: root/src/output.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/output.cc')
-rw-r--r--src/output.cc9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/output.cc b/src/output.cc
index e314d5da..b9af9a27 100644
--- a/src/output.cc
+++ b/src/output.cc
@@ -210,6 +210,15 @@ void format_entries::operator()(xact_t& xact)
last_entry = xact.entry;
}
+bool format_accounts::should_display(account_t& account)
+{
+ if (! disp_pred.predicate && report.HANDLED(display_))
+ disp_pred.predicate.parse(report.HANDLER(display_).str());
+
+ bind_scope_t bound_scope(report, account);
+ return disp_pred(bound_scope);
+}
+
void format_accounts::flush()
{
std::ostream& out(report.output_stream);