mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-02-13 16:25:45 +01:00
Make completion generally niftier (add a rate limiting timer)
This commit is contained in:
@@ -742,15 +742,15 @@ liberator.Options = function () //{{{
|
||||
|
||||
if (!filter)
|
||||
{
|
||||
let options = [[prefix + option.name, option.description]
|
||||
let opts = [[prefix + option.name, option.description]
|
||||
for (option in options)];
|
||||
return [0, options];
|
||||
return [0, opts];
|
||||
}
|
||||
else if (filter.indexOf("=") == -1)
|
||||
{
|
||||
for (let option in options)
|
||||
optionCompletions.push([[prefix + name, option.description]
|
||||
for (name in option.names)
|
||||
for each (name in option.names)
|
||||
if (name.indexOf(filter) == 0)]);
|
||||
// Flatten array.
|
||||
optionCompletions = Array.concat.apply(Array, optionCompletions);
|
||||
|
||||
Reference in New Issue
Block a user