mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-23 08:17:59 +01:00
add some missing argCount specs to commands
This commit is contained in:
@@ -677,14 +677,11 @@ liberator.Events = function () //{{{
|
||||
|
||||
liberator.commands.add(["delmac[ros]"],
|
||||
"Delete macros",
|
||||
function (args)
|
||||
function (args) { liberator.events.deleteMacros(args); },
|
||||
{
|
||||
if (!args)
|
||||
liberator.echoerr("E474: Invalid argument");
|
||||
else
|
||||
liberator.events.deleteMacros(args);
|
||||
},
|
||||
{ completer: function (filter) liberator.completion.macro(filter) });
|
||||
argCount: "+", // pattern might contain whitespace
|
||||
completer: function (filter) liberator.completion.macro(filter)
|
||||
});
|
||||
|
||||
liberator.commands.add(["macros"],
|
||||
"List all macros",
|
||||
@@ -698,14 +695,11 @@ liberator.Events = function () //{{{
|
||||
|
||||
liberator.commands.add(["pl[ay]"],
|
||||
"Replay a recorded macro",
|
||||
function (args)
|
||||
function (args) { liberator.events.playMacro(args); },
|
||||
{
|
||||
if (!args)
|
||||
liberator.echoerr("E474: Invalid argument");
|
||||
else
|
||||
liberator.events.playMacro(args);
|
||||
},
|
||||
{ completer: function (filter) liberator.completion.macro(filter) });
|
||||
argCount: "1",
|
||||
completer: function (filter) liberator.completion.macro(filter)
|
||||
});
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////}}}
|
||||
////////////////////// PUBLIC SECTION //////////////////////////////////////////
|
||||
|
||||
Reference in New Issue
Block a user