summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--textual.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/textual.cc b/textual.cc
index 33b7971b..c15b7701 100644
--- a/textual.cc
+++ b/textual.cc
@@ -389,6 +389,11 @@ unsigned int textual_parser_t::parse(std::istream& in,
break;
#endif // TIMELOG_SUPPORT
+ case 'D': // a default commodity for "entry"
+ commodity_t::default_commodity =
+ commodity_t::find_commodity(skip_ws(line + 1), true);
+ break;
+
case 'C': // a set of conversions
if (char * p = std::strchr(line + 1, '=')) {
*p++ = '\0';