1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-20 18:27:59 +01:00

Fix: completion.url

completion.url(foo, "") misuse option["complete"].
This commit is contained in:
anekos
2009-11-28 08:45:23 +09:00
parent 78308e2483
commit c3ec6fff4a

5
common/content/completion.js Normal file → Executable file
View File

@@ -682,8 +682,11 @@ const Completion = Module("completion", {
if (skip)
context.advance(skip[0].length);
if (typeof complete === "undefined")
complete = options["complete"];
// Will, and should, throw an error if !(c in opts)
Array.forEach(complete || options["complete"], function (c) {
Array.forEach(complete, function (c) {
let completer = completion.urlCompleters[c];
context.fork.apply(context, [c, 0, completion, completer.completer].concat(completer.args));
});