summaryrefslogtreecommitdiff
path: root/src/textual.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/textual.cc')
-rw-r--r--src/textual.cc7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/textual.cc b/src/textual.cc
index 0eb00292..c2976ee1 100644
--- a/src/textual.cc
+++ b/src/textual.cc
@@ -486,6 +486,7 @@ void instance_t::option_directive(char * line)
*p++ = '\0';
}
+#if 0
if (! process_option(pathname.string(), line + 2, scope, p, line) &&
! dynamic_cast<session_t *>(&scope)) {
if (std::strlen(line + 2) == 1)
@@ -493,6 +494,9 @@ void instance_t::option_directive(char * line)
else
throw_(option_error, _("Illegal option --%1") << line + 2);
}
+#else
+ process_option(pathname.string(), line + 2, scope, p, line);
+#endif
}
void instance_t::automated_xact_directive(char * line)
@@ -520,6 +524,7 @@ void instance_t::automated_xact_directive(char * line)
journal.auto_xacts.push_back(ae.get());
+ ae->journal = &journal;
ae->pos = position_t();
ae->pos->pathname = pathname;
ae->pos->beg_pos = pos;
@@ -555,6 +560,7 @@ void instance_t::period_xact_directive(char * line)
if (parse_posts(account_stack.front(), *pe.get())) {
reveal_context = true;
+ pe->journal = &journal;
if (pe->finalize()) {
extend_xact_base(&journal, *pe.get(), true);
@@ -570,6 +576,7 @@ void instance_t::period_xact_directive(char * line)
pe.release();
} else {
+ pe->journal = NULL;
throw parse_error(_("Period transaction failed to balance"));
}
}