1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-02-06 06:55:46 +01:00

Clarify some arg counts and some related tests.

--HG--
extra : rebase_source : e50c757b46406988b0bfa0c179ec1e9bad21a446
This commit is contained in:
Doug Kearns
2011-06-29 20:11:22 +10:00
parent 07bd83d7e4
commit ab7ad88b21
9 changed files with 228 additions and 66 deletions

View File

@@ -1596,6 +1596,7 @@ var Commands = Module("commands", {
dactyl.echomsg(_("command.yank.yankedLine" + (lines == 1 ? "" : "s"), lines));
},
{
argCount: "1",
completer: function (context) modules.completion[/^:/.test(context.filter) ? "ex" : "javascript"](context),
literal: 0
});

View File

@@ -841,7 +841,7 @@ unlet s:cpo_save
modules.autocommands.trigger("ShellCmdPost", {});
}, {
argCount: "?", // TODO: "1" - probably not worth supporting weird Vim edge cases. The dream is dead. --djk
argCount: "1",
bang: true,
// This is abominably slow.
// completer: function (context) completion.shellCommand(context),

View File

@@ -842,6 +842,7 @@ var JavaScript = Module("javascript", {
.open();
}
}, {
argCount: "?",
bang: true,
completer: function (context) modules.completion.javascript(context),
hereDoc: true,