diff --git a/content/events.js b/content/events.js index 34bc8f02..e5272f9e 100644 --- a/content/events.js +++ b/content/events.js @@ -607,12 +607,12 @@ liberator.Events = function () //{{{ liberator.commands.add(["delmac[ros]"], "Delete macros", - function (arg) + function (args) { - if (!arg) + if (!args) liberator.echoerr("E474: Invalid argument"); else - liberator.events.deleteMacros(arg); + liberator.events.deleteMacros(args); }, { completer: function (filter) { return getMacroCompletions(filter); } @@ -620,10 +620,10 @@ liberator.Events = function () //{{{ liberator.commands.add(["macros"], "List all macros", - function (arg) + function (args) { var str = "
| " + item + " | " + liberator.util.escapeHTML(macroRef[item]) + " |