diff options
Diffstat (limited to 'src/global.cc')
-rw-r--r-- | src/global.cc | 7 |
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 |