X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FCatalyst.pm;fp=lib%2FCatalyst.pm;h=c84253d6602172eb112a059c4c855e72e845f7c1;hb=fb5f42422b1ef1a4cc64ddfd83836c8c1d89bb2c;hp=c20ceca6b417f2ef27aae2a55d5d02f655f49071;hpb=dd8a0c31e0ba1056a350bcfadac07e5add83c6ad;p=catagits%2FCatalyst-Runtime.git diff --git a/lib/Catalyst.pm b/lib/Catalyst.pm index c20ceca..c84253d 100644 --- a/lib/Catalyst.pm +++ b/lib/Catalyst.pm @@ -452,7 +452,7 @@ sub _comp_search_prefixes { # regexp fallback $query = qr/$name/i; - @result = grep { $eligible{ $_ } =~ m{$query} } keys %eligible; + @result = map { $c->components->{ $_ } } grep { $eligible{ $_ } =~ m{$query} } keys %eligible; # don't warn if we didn't find any results, it just might not exist if( @result ) {