… | … | ||
---|---|---|---|
320 | my @found; | 320 | my @found; |
321 | 321 | ||
322 | for (@$command) { | 322 | for (@$command) { |
323 | if ($_->[0] =~ $search_abbrev) { | 323 | if ($_->[0] =~ $search_abbrev) { |
324 | push @found, [$_->[0], $_]; | 324 | push @found, [$_->[0], $_]; |
325 | } elsif ($_[1] =~ $search_full) { | 325 | } elsif ($_->[1] =~ $search_full) { |
326 | push @found, [$_->[1], $_]; | 326 | push @found, [$_->[1], $_]; |
327 | } | 327 | } |
328 | } | 328 | } |
329 | 329 | ||
330 | @found = sort { $a->[0] cmp $b->[0] } @found; | 330 | @found = sort { $a->[0] cmp $b->[0] } @found; |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |