mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-23 16:52:25 +01:00
fix some arg parsing caused by last argCount additions
This commit is contained in:
@@ -808,7 +808,7 @@ liberator.Buffer = function () //{{{
|
||||
|
||||
liberator.commands.add(["vie[wsource]"],
|
||||
"View source code of current document",
|
||||
function (args, special) { liberator.buffer.viewSource(args, special); },
|
||||
function (args, special) { liberator.buffer.viewSource(args.arguments[0], special); },
|
||||
{
|
||||
argCount: "1",
|
||||
bang: true
|
||||
|
||||
@@ -701,7 +701,7 @@ liberator.Events = function () //{{{
|
||||
|
||||
liberator.commands.add(["pl[ay]"],
|
||||
"Replay a recorded macro",
|
||||
function (args) { liberator.events.playMacro(args); },
|
||||
function (args) { liberator.events.playMacro(args.arguments[0]); },
|
||||
{
|
||||
argCount: "1",
|
||||
completer: function (filter) liberator.completion.macro(filter)
|
||||
|
||||
@@ -167,6 +167,8 @@ const liberator = (function () //{{{
|
||||
"Open a " + liberator.config.name + " dialog",
|
||||
function (args)
|
||||
{
|
||||
args = args.arguments[0];
|
||||
|
||||
try
|
||||
{
|
||||
var dialogs = liberator.config.dialogs || [];
|
||||
@@ -407,6 +409,8 @@ const liberator = (function () //{{{
|
||||
"Profile a piece of code or run a command multiple times",
|
||||
function (args, special, count)
|
||||
{
|
||||
args = args.string;
|
||||
|
||||
try
|
||||
{
|
||||
if (count > 1)
|
||||
|
||||
@@ -355,7 +355,7 @@ liberator.Tabs = function () //{{{
|
||||
function (args)
|
||||
{
|
||||
liberator.forceNewTab = true;
|
||||
liberator.execute(args);
|
||||
liberator.execute(args.string);
|
||||
liberator.forceNewTab = false;
|
||||
},
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user