1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-01-02 15:34:11 +01:00

Better option completion/validation.

This commit is contained in:
Kris Maglione
2008-11-28 04:28:38 +00:00
parent 49d331f811
commit 2ef031c756
10 changed files with 39 additions and 61 deletions

View File

@@ -952,7 +952,9 @@ function Completion() //{{{
_runCompleter: function _runCompleter(name, filter)
{
let context = CompletionContext(filter);
context.fork.apply(context, ["run", 0, this, name].concat(Array.slice(arguments, 2)));
let res = context.fork.apply(context, ["run", 0, this, name].concat(Array.slice(arguments, 2)));
if (res) // FIXME
return { items: res.map(function (i) ({ item: i })) };
while (context.incomplete)
liberator.threadYield(true, true);
return context.allItems;