Changeset c4efb46 for perl/lib/BarnOwl/Completion.pm
- Timestamp:
- Jul 28, 2009, 11:20:30 PM (15 years ago)
- Branches:
- master, release-1.10, release-1.4, release-1.5, release-1.6, release-1.7, release-1.8, release-1.9
- Children:
- 19cc7b00
- Parents:
- 216b1d0
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
perl/lib/BarnOwl/Completion.pm
rf987504 rc4efb46 18 18 point_move replace_region); 19 19 20 use List::Util qw(m axfirst);20 use List::Util qw(min first); 21 21 22 22 our %completers = (); … … 76 76 sub common_prefix { 77 77 my @words = @_; 78 my $len = m ax(map {length($_)} @words);78 my $len = min(map {length($_)} @words); 79 79 my $pfx = ''; 80 80 for my $i (1..$len) {
Note: See TracChangeset
for help on using the changeset viewer.