summaryrefslogtreecommitdiff
path: root/common/modules
diff options
context:
space:
mode:
authorDoug Kearns <dougkearns@gmail.com>2011-06-29 20:11:22 +1000
committerDoug Kearns <dougkearns@gmail.com>2011-06-29 20:11:22 +1000
commitab7ad88b21ba6209727fd48fa55c611fd2954de4 (patch)
tree72bd04106995edab5c2b79ef59943c4c27247d3f /common/modules
parent07bd83d7e43ef2a24e26cb7a956340cb44c6aac7 (diff)
downloadpentadactyl-ab7ad88b21ba6209727fd48fa55c611fd2954de4.tar.gz
Clarify some arg counts and some related tests.
--HG-- extra : rebase_source : e50c757b46406988b0bfa0c179ec1e9bad21a446
Diffstat (limited to 'common/modules')
-rw-r--r--common/modules/commands.jsm1
-rw-r--r--common/modules/io.jsm2
-rw-r--r--common/modules/javascript.jsm1
3 files changed, 3 insertions, 1 deletions
diff --git a/common/modules/commands.jsm b/common/modules/commands.jsm
index a3c388c5..d0ef2455 100644
--- a/common/modules/commands.jsm
+++ b/common/modules/commands.jsm
@@ -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
});
diff --git a/common/modules/io.jsm b/common/modules/io.jsm
index c265eea2..53bc9257 100644
--- a/common/modules/io.jsm
+++ b/common/modules/io.jsm
@@ -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),
diff --git a/common/modules/javascript.jsm b/common/modules/javascript.jsm
index 686d81b2..d1098247 100644
--- a/common/modules/javascript.jsm
+++ b/common/modules/javascript.jsm
@@ -842,6 +842,7 @@ var JavaScript = Module("javascript", {
.open();
}
}, {
+ argCount: "?",
bang: true,
completer: function (context) modules.completion.javascript(context),
hereDoc: true,