summaryrefslogtreecommitdiff
path: root/src/predicate.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/predicate.cc')
-rw-r--r--src/predicate.cc7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/predicate.cc b/src/predicate.cc
index 3402ca3b..2ff897e5 100644
--- a/src/predicate.cc
+++ b/src/predicate.cc
@@ -33,7 +33,7 @@
namespace ledger {
-string args_to_predicate_expr(value_t::sequence_t::const_iterator begin,
+string args_to_predicate_expr(value_t::sequence_t::const_iterator& begin,
value_t::sequence_t::const_iterator end)
{
std::ostringstream expr;
@@ -44,6 +44,11 @@ string args_to_predicate_expr(value_t::sequence_t::const_iterator begin,
string arg = (*begin).as_string();
string prefix;
+ if (arg == "show") {
+ ++begin;
+ break;
+ }
+
bool parse_argument = true;
bool only_closed_parenthesis = false;;