summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcos <cos>2012-09-22 13:35:30 +0200
committercos <cos>2012-12-17 21:12:08 +0100
commitbf44103ca43d4ad95f626a1941431c7b166bd1f7 (patch)
treed4675ed1f46cc4242d8aec54866f3fb477c3641c
parent62c0167f36994b773ebfb8b5cc714cdd4c4bc38d (diff)
downloadmat-bf44103ca43d4ad95f626a1941431c7b166bd1f7.zip
Fixed off by one bug in searchrecipes.
-rwxr-xr-xmat2
1 files changed, 1 insertions, 1 deletions
diff --git a/mat b/mat
index 8d3b447..b65edb5 100755
--- a/mat
+++ b/mat
@@ -463,7 +463,7 @@ sub cmd_searchrecipes {
# while (my ($i, $recipe) = each @recipes) {
next if not defined($recipe);
if(grep(/$regex/i, $recipe->{'name'})) {
- printf "%4d| %-50s\n", $i, $recipe->{'name'};
+ printf "%4d| %-50s\n", $i-1, $recipe->{'name'};
}
}