From 2522d3c717f00bd3fc683a51e3348d2795e64396 Mon Sep 17 00:00:00 2001 From: Martin Stubenschrott Date: Sun, 30 Sep 2007 02:23:31 +0000 Subject: [PATCH] Fixed search completions for wildmode=longest --- chrome/content/vimperator/completion.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/chrome/content/vimperator/completion.js b/chrome/content/vimperator/completion.js index 0ed84a64..0e0f9972 100644 --- a/chrome/content/vimperator/completion.js +++ b/chrome/content/vimperator/completion.js @@ -218,7 +218,7 @@ vimperator.completion = (function() // {{{ if (!filter) return engines.map(function(engine) { return [engine[0], engine[1]]; }); - var mapped = engines.map(function($_) { + var mapped = engines.map(function(engine) { return [[engine[0]], engine[1]]; }); return build_longest_common_substring(mapped, filter); @@ -239,8 +239,6 @@ vimperator.completion = (function() // {{{ // TODO: support file:// and \ or / path separators on both platforms get_file_completions: function(filter) //{{{ { - //var completions = []; - // this is now also used as part of the url completion, so the // substrings shouldn't be cleared for that case if (!arguments[1])