Bash-Completion-Plugins-VimTag
view release on metacpan or search on metacpan
lib/Bash/Completion/Plugins/VimTag.pm view on Meta::CPAN
$has_hits++;
} else {
last if $has_hits;
}
}
close $fh or next;
}
# Special case if the word contains one or more colons: Only return the
# part of each completion that comes after the last colon. This has to do
# with bash using the colon as a delimiter, I guess.
if ($word =~ /^(.+::?)/) {
my $prefix_length = length $1;
substr($_, 0, $prefix_length) = '' for @candidates;
}
$r->candidates(@candidates);
}
1;
=head1 NAME
( run in 2.148 seconds using v1.01-cache-2.11-cpan-39bf76dae61 )