mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-20 11:08:09 +01:00
Fix :command list output.
This commit is contained in:
@@ -1066,14 +1066,14 @@ const Commands = Module("commands", {
|
|||||||
|
|
||||||
if (cmds.length > 0)
|
if (cmds.length > 0)
|
||||||
commandline.commandOutput(
|
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.bang ? "!" : " ",
|
||||||
cmd.name,
|
cmd.name,
|
||||||
cmd.argCount,
|
cmd.argCount,
|
||||||
cmd.count ? "0c" : "",
|
cmd.count ? "0c" : "",
|
||||||
completerToString(cmd.completer),
|
completerToString(cmd.completer),
|
||||||
cmd.replacementText || "function () { ... }"]
|
cmd.replacementText || "function () { ... }"]
|
||||||
for ([, cmd] in Iterator(cmds))));
|
for ([, cmd] in Iterator(cmds)))));
|
||||||
else
|
else
|
||||||
dactyl.echomsg("No user-defined commands found");
|
dactyl.echomsg("No user-defined commands found");
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user