1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-03-04 22:35:45 +01:00

Fixed search completions for wildmode=longest

This commit is contained in:
Martin Stubenschrott
2007-09-30 02:23:31 +00:00
parent 2c7839e597
commit 2522d3c717

View File

@@ -218,7 +218,7 @@ vimperator.completion = (function() // {{{
if (!filter) return engines.map(function(engine) { if (!filter) return engines.map(function(engine) {
return [engine[0], engine[1]]; return [engine[0], engine[1]];
}); });
var mapped = engines.map(function($_) { var mapped = engines.map(function(engine) {
return [[engine[0]], engine[1]]; return [[engine[0]], engine[1]];
}); });
return build_longest_common_substring(mapped, filter); return build_longest_common_substring(mapped, filter);
@@ -239,8 +239,6 @@ vimperator.completion = (function() // {{{
// TODO: support file:// and \ or / path separators on both platforms // TODO: support file:// and \ or / path separators on both platforms
get_file_completions: function(filter) //{{{ get_file_completions: function(filter) //{{{
{ {
//var completions = [];
// this is now also used as part of the url completion, so the // this is now also used as part of the url completion, so the
// substrings shouldn't be cleared for that case // substrings shouldn't be cleared for that case
if (!arguments[1]) if (!arguments[1])