1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-24 00:02:27 +01:00

Replace expression closures (command/option/mapping definitions).

Expression closures are to be axed. See https://bugzil.la/1083458.
This commit is contained in:
Doug Kearns
2015-07-23 01:15:41 +10:00
parent 85eede1ee2
commit 779752d776
33 changed files with 518 additions and 339 deletions

View File

@@ -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
});
});