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 = ""; - var macroRef = liberator.events.getMacros(arg); + var macroRef = liberator.events.getMacros(args); for (var item in macroRef) str += ""; @@ -638,12 +638,12 @@ liberator.Events = function () //{{{ liberator.commands.add(["pl[ay]"], "Replay a recorded macro", - function (arg) + function (args) { - if (!arg) + if (!args) liberator.echoerr("E474: Invalid argument"); else - liberator.events.playMacro(arg); + liberator.events.playMacro(args); }, { completer: function (filter) { return getMacroCompletions(filter); }
" + item + "   " + liberator.util.escapeHTML(macroRef[item]) + "