mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-30 04:22:28 +01:00
Small fix for Minefield.
This commit is contained in:
@@ -294,7 +294,10 @@ var Config = Module("config", ConfigBase, {
|
||||
context.anchored = false;
|
||||
context.compare = CompletionContext.Sort.unsorted;
|
||||
context.filterFunc = null;
|
||||
context.hasItems = context.completions.length > 0; // XXX
|
||||
|
||||
let words = context.filter.toLowerCase().split(/\s+/g);
|
||||
context.completions = context.completions.filter(function ({ url, title })
|
||||
words.every(function (w) (url + " " + title).toLowerCase().indexOf(w) >= 0))
|
||||
context.incomplete = true;
|
||||
|
||||
context.format = modules.bookmarks.format;
|
||||
|
||||
Reference in New Issue
Block a user