1
0
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:
Kris Maglione
2011-02-19 00:24:07 -05:00
parent cb0a07ddd1
commit 34c0c5a10e
5 changed files with 12 additions and 7 deletions

View File

@@ -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;