mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-03-04 15:45:48 +01:00
Fixed search completions for wildmode=longest
This commit is contained in:
@@ -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])
|
||||||
|
|||||||
Reference in New Issue
Block a user