diff options
author | Alexis Hildebrandt <afh@surryhill.net> | 2014-12-28 13:32:22 +0100 |
---|---|---|
committer | Alexis Hildebrandt <afh@surryhill.net> | 2014-12-28 13:32:22 +0100 |
commit | e716980c7d4ae2a2852a7cd0e5c0cf52014ed787 (patch) | |
tree | 21aac4c964e01ff3550dc6893e82f72b72bf6da9 /src/textual.cc | |
parent | 66ce4ac48f88b81eab1a2c04eeef83ee4fa06335 (diff) | |
download | fork-ledger-e716980c7d4ae2a2852a7cd0e5c0cf52014ed787.tar.gz fork-ledger-e716980c7d4ae2a2852a7cd0e5c0cf52014ed787.tar.bz2 fork-ledger-e716980c7d4ae2a2852a7cd0e5c0cf52014ed787.zip |
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.
Diffstat (limited to 'src/textual.cc')
-rw-r--r-- | src/textual.cc | 7 |
1 files changed, 7 insertions, 0 deletions
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)) { |