mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-23 07:17:59 +01:00
Add CompletionContextoptions.jswait. Dont preview 1 character substrings.
This commit is contained in:
@@ -944,10 +944,12 @@ function Options() //{{{
|
||||
// TODO: Run this by default?
|
||||
validateCompleter: function (values)
|
||||
{
|
||||
let self = this;
|
||||
let completions = completion.runCompleter(function (context) self.completer(context), "");
|
||||
let context = CompletionContext("");
|
||||
let res = this.completer(context);
|
||||
if (!res)
|
||||
res = context.allItems.map(function (item) [item.text]);
|
||||
return Array.concat(values).every(
|
||||
function (value) completions.some(function (item) item[0] == value));
|
||||
function (value) res.some(function (item) item[0] == value));
|
||||
},
|
||||
|
||||
get store() storage.options,
|
||||
|
||||
Reference in New Issue
Block a user