1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-03-24 14:23:33 +01:00
--HG--
branch : testing
This commit is contained in:
Kris Maglione
2010-08-26 15:18:49 -04:00
11 changed files with 58 additions and 48 deletions

7
common/content/autocommands.js Normal file → Executable file
View File

@@ -196,7 +196,12 @@ const AutoCommands = Module("autocommands", {
}
}, {
bang: true,
completer: function (context) completion.autocmdEvent(context),
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);
},
literal: 2,
options: [[["-javascript", "-js"], commands.OPTION_NOARG]]
});