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

Fix :command list output.

This commit is contained in:
Doug Kearns
2010-10-02 02:39:41 +10:00
parent 2aa9c05492
commit 572c591979

View File

@@ -1066,14 +1066,14 @@ const Commands = Module("commands", {
if (cmds.length > 0)
commandline.commandOutput(
template.tabular(["", "Name", "Args", "Range", "Complete", "Definition"], ["padding-right: 2em;"]),
template.tabular(["", "Name", "Args", "Range", "Complete", "Definition"], ["padding-right: 2em;"],
([cmd.bang ? "!" : " ",
cmd.name,
cmd.argCount,
cmd.count ? "0c" : "",
completerToString(cmd.completer),
cmd.replacementText || "function () { ... }"]
for ([, cmd] in Iterator(cmds))));
for ([, cmd] in Iterator(cmds)))));
else
dactyl.echomsg("No user-defined commands found");
}