summaryrefslogtreecommitdiff
path: root/src/global.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2009-02-05 21:54:46 -0400
committerJohn Wiegley <johnw@newartisans.com>2009-02-05 21:54:46 -0400
commitd853a58f5fd519f756c591b9c3622df179a0809c (patch)
tree9304bcf35b0967275c36d5fb2535219acb35dd5c /src/global.cc
parent408b819c6e087593ba61e82b91dda2369ef32f62 (diff)
downloadfork-ledger-d853a58f5fd519f756c591b9c3622df179a0809c.tar.gz
fork-ledger-d853a58f5fd519f756c591b9c3622df179a0809c.tar.bz2
fork-ledger-d853a58f5fd519f756c591b9c3622df179a0809c.zip
Moved --pager handler back into report_t.
Diffstat (limited to 'src/global.cc')
-rw-r--r--src/global.cc7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/global.cc b/src/global.cc
index b04b4498..915713bc 100644
--- a/src/global.cc
+++ b/src/global.cc
@@ -169,9 +169,12 @@ void global_scope_t::execute_command(strings_list args, bool at_repl)
// by the caller of this function.
report().output_stream
- .initialize(report().HANDLER(output_) ?
+ .initialize(report().HANDLED(output_) ?
optional<path>(path(report().HANDLER(output_).str())) :
- optional<path>(), session().pager_path);
+ optional<path>(),
+ report().HANDLED(pager_) ?
+ optional<path>(path(report().HANDLER(pager_).str())) :
+ optional<path>());
// Create an argument scope containing the report command's arguments, and
// then invoke the command. The bound scope causes lookups to happen