From 46978b2d5d64755678bb7d6d7572b77ec30b2235 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Wed, 13 Jul 2005 09:04:36 +0000 Subject: (regexps_to_predicate): Don't modify the display predicate for balance commands if a payee regexp is being processed. --- config.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/config.cc b/config.cc index 0e9d3c74..885c37db 100644 --- a/config.cc +++ b/config.cc @@ -128,7 +128,7 @@ regexps_to_predicate(config_t& config, const std::string& command, add_predicate = 1; } - if (i != 1 && command == "b") { + if (i != 1 && command == "b" && account_regexp) { if (! config.display_predicate.empty()) config.display_predicate += "&"; else if (! config.show_empty) @@ -182,11 +182,11 @@ void config_t::process_options(const std::string& command, if (*i == "--") break; - regexps_to_predicate(*this, command, arg, i, true, + regexps_to_predicate(*this, command, arg, i++, true, (command == "b" && ! show_subtotal && display_predicate.empty())); if (i != args_end) - regexps_to_predicate(*this, command, ++i, args_end); + regexps_to_predicate(*this, command, i, args_end); } // Setup the default value for the display predicate -- cgit v1.2.3