summaryrefslogtreecommitdiff
path: root/src/main.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.cc')
-rw-r--r--src/main.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/main.cc b/src/main.cc
index d3dda002..a4e78ab7 100644
--- a/src/main.cc
+++ b/src/main.cc
@@ -400,7 +400,10 @@ namespace ledger {
if (verb == "register" || verb == "reg" || verb == "r") {
verb = "register";
- command = reporter<>(new format_xacts(report, session.register_format));
+ command = reporter<>(new format_xacts(report,
+ report.format_string.empty() ?
+ session.register_format :
+ report.format_string));
}
else if (verb == "print" || verb == "p") {
verb = "print";