From e716980c7d4ae2a2852a7cd0e5c0cf52014ed787 Mon Sep 17 00:00:00 2001 From: Alexis Hildebrandt Date: Sun, 28 Dec 2014 13:32:22 +0100 Subject: Fix plain year directive Only Y2014 or apply year 2014 would actually set the year for the following transactions; year 2014 would silently do nothing. --- src/textual.cc | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src') diff --git a/src/textual.cc b/src/textual.cc index b2f19be4..5862c26c 100644 --- a/src/textual.cc +++ b/src/textual.cc @@ -1375,6 +1375,13 @@ bool instance_t::general_directive(char * line) return true; } break; + + case 'y': + if (std::strcmp(p, "year") == 0) { + apply_year_directive(arg); + return true; + } + break; } if (expr_t::ptr_op_t op = lookup(symbol_t::DIRECTIVE, p)) { -- cgit v1.2.3