summaryrefslogtreecommitdiff
path: root/common/content/autocommands.js
diff options
context:
space:
mode:
Diffstat (limited to 'common/content/autocommands.js')
-rw-r--r--common/content/autocommands.js10
1 files changed, 6 insertions, 4 deletions
diff --git a/common/content/autocommands.js b/common/content/autocommands.js
index 95464e0c..9be2a5a0 100644
--- a/common/content/autocommands.js
+++ b/common/content/autocommands.js
@@ -213,9 +213,9 @@ var AutoCommands = Module("autocommands", {
bang: true,
completer: function (context, args) {
if (args.length == 1)
- return completion.autocmdEvent(context);
- if (args.length == 3)
- return args["-javascript"] ? completion.javascript(context) : completion.ex(context);
+ completion.autocmdEvent(context);
+ else if (args.length == 3)
+ args["-javascript"] ? completion.javascript(context) : completion.ex(context);
},
hereDoc: true,
keepQuotes: true,
@@ -273,7 +273,9 @@ var AutoCommands = Module("autocommands", {
autocommands.trigger(event, { url: uri.spec });
}, {
argCount: "*", // FIXME: kludged for proper error message should be "1".
- completer: function (context) completion.autocmdEvent(context),
+ completer: function (context) {
+ completion.autocmdEvent(context);
+ },
keepQuotes: true
});
});