summaryrefslogtreecommitdiff
path: root/main.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2008-08-04 16:10:54 -0400
committerJohn Wiegley <johnw@newartisans.com>2008-08-04 16:10:54 -0400
commit966b231f23a0c74db105784ba1291c860ced483e (patch)
treeb776c8087af94cbe725330069a26de562b982a37 /main.cc
parentfb85292b553010f931f8325f500fb928ffd55227 (diff)
downloadfork-ledger-966b231f23a0c74db105784ba1291c860ced483e.tar.gz
fork-ledger-966b231f23a0c74db105784ba1291c860ced483e.tar.bz2
fork-ledger-966b231f23a0c74db105784ba1291c860ced483e.zip
When doing a command-line tag search, search for :tag:, not just tag.
Diffstat (limited to 'main.cc')
-rw-r--r--main.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/main.cc b/main.cc
index 3365df15..28bee25a 100644
--- a/main.cc
+++ b/main.cc
@@ -104,12 +104,14 @@ namespace ledger {
}
*value_expr += "/";
+ if (kind == NOTE_REGEXP) *value_expr += ":";
while (*p) {
if (*p == '/')
*value_expr += "\\";
*value_expr += *p;
p++;
}
+ if (kind == NOTE_REGEXP) *value_expr += ":";
*value_expr += "/";
}
}