1
0
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:
Doug Kearns
2008-10-06 16:15:59 +00:00
parent f8a8904716
commit cd64a5132a
4 changed files with 7 additions and 3 deletions

View File

@@ -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

View File

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

View File

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

View File

@@ -355,7 +355,7 @@ liberator.Tabs = function () //{{{
function (args)
{
liberator.forceNewTab = true;
liberator.execute(args);
liberator.execute(args.string);
liberator.forceNewTab = false;
},
{