diff options
author | cos <cos> | 2012-09-22 13:35:30 +0200 |
---|---|---|
committer | cos <cos> | 2012-12-17 21:12:08 +0100 |
commit | bf44103ca43d4ad95f626a1941431c7b166bd1f7 (patch) | |
tree | d4675ed1f46cc4242d8aec54866f3fb477c3641c | |
parent | 62c0167f36994b773ebfb8b5cc714cdd4c4bc38d (diff) | |
download | mat-bf44103ca43d4ad95f626a1941431c7b166bd1f7.zip |
Fixed off by one bug in searchrecipes.
-rwxr-xr-x | mat | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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'}; } } |