(config_t::regexps_to_predicate): Don't set the display predicate to
show only matching accounts when the --related flag is in use (which was effectively masking out the whole point of using --related with balance reports).
This commit is contained in:
parent
3ba15e81a4
commit
30a5d875f0
1 changed files with 14 additions and 9 deletions
|
|
@ -130,6 +130,7 @@ config_t::regexps_to_predicate(const std::string& command,
|
||||||
}
|
}
|
||||||
|
|
||||||
if (i != 1 && command == "b" && account_regexp) {
|
if (i != 1 && command == "b" && account_regexp) {
|
||||||
|
if (! show_related && ! show_all_related) {
|
||||||
if (! display_predicate.empty())
|
if (! display_predicate.empty())
|
||||||
display_predicate += "&";
|
display_predicate += "&";
|
||||||
else if (! show_empty)
|
else if (! show_empty)
|
||||||
|
|
@ -141,6 +142,10 @@ config_t::regexps_to_predicate(const std::string& command,
|
||||||
display_predicate += regexps[i];
|
display_predicate += regexps[i];
|
||||||
display_predicate += ")/";
|
display_predicate += ")/";
|
||||||
}
|
}
|
||||||
|
else if (! show_empty) {
|
||||||
|
display_predicate += "T";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (! account_regexp)
|
if (! account_regexp)
|
||||||
predicate += "/";
|
predicate += "/";
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue