1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-23 10:08:00 +01:00

Some completion fixes

This commit is contained in:
Kris Maglione
2008-11-26 10:51:43 +00:00
parent 5da5f6336a
commit 7d1b3f793c
7 changed files with 39 additions and 32 deletions

View File

@@ -644,7 +644,7 @@ function Commands() //{{{
else
compl = opt[3] || [];
context.title = [opt[0][0]];
context.quote = args.quote;
context.quote = ["", args.quote, ""]; // FIXME
context.completions = compl;
}
complete.advance(args.completeStart);
@@ -871,7 +871,7 @@ function Commands() //{{{
options: util.Array.assocToObj(
util.map({argCount: "-nargs", bang: "-bang", count: "-count"},
function ([k, v]) k in cmd && cmd[k] != "0" && [v, typeof cmd[k] == "boolean" ? null : cmd[k]])
.filter(function (k) k)),
.filter(util.identity)),
arguments: [cmd.name],
literalArg: cmd.replacementText
}