mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-24 08:52:27 +01:00
Import (and augment) my cookies plugin per Doug's suggestion, and improve dactyl.generateHelp (and :yank).
This commit is contained in:
@@ -733,8 +733,11 @@ const Completion = Module("completion", {
|
||||
let context = CompletionContext(filter);
|
||||
context.maxItems = maxItems;
|
||||
let res = context.fork.apply(context, ["run", 0, this, name].concat(Array.slice(arguments, 3)));
|
||||
if (res) // FIXME
|
||||
return { items: res.map(function (i) ({ item: i })) };
|
||||
if (res) {
|
||||
if (Components.stack.caller.name === "runCompleter") // FIXME
|
||||
return { items: res.map(function (i) ({ item: i })) };
|
||||
context.contexts["/run"].completions = res;
|
||||
}
|
||||
context.wait(true);
|
||||
return context.allItems;
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user