mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-02-17 07:15:46 +01:00
Fix some non-working 'autocomplete' uses.
This commit is contained in:
@@ -708,6 +708,9 @@ var Bookmarks = Module("bookmarks", {
|
||||
ctxt.compare = CompletionContext.Sort.unsorted;
|
||||
ctxt.filterFunc = null;
|
||||
|
||||
if (ctxt.waitingForTab)
|
||||
return;
|
||||
|
||||
let words = ctxt.filter.toLowerCase().split(/\s+/g);
|
||||
ctxt.completions = ctxt.completions.filter(function (i) words.every(function (w) i.toLowerCase().indexOf(w) >= 0));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user