From cd64a5132abbbe70d2c98cbb386ae83014fa2762 Mon Sep 17 00:00:00 2001 From: Doug Kearns Date: Mon, 6 Oct 2008 16:15:59 +0000 Subject: [PATCH] fix some arg parsing caused by last argCount additions --- content/buffer.js | 2 +- content/events.js | 2 +- content/liberator.js | 4 ++++ content/tabs.js | 2 +- 4 files changed, 7 insertions(+), 3 deletions(-) diff --git a/content/buffer.js b/content/buffer.js index f4f3df5a..614177b6 100644 --- a/content/buffer.js +++ b/content/buffer.js @@ -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 diff --git a/content/events.js b/content/events.js index 6ab58ed2..5641ef8b 100644 --- a/content/events.js +++ b/content/events.js @@ -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) diff --git a/content/liberator.js b/content/liberator.js index e325c28d..0822c6f2 100644 --- a/content/liberator.js +++ b/content/liberator.js @@ -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) diff --git a/content/tabs.js b/content/tabs.js index af05ce63..6000a3b6 100644 --- a/content/tabs.js +++ b/content/tabs.js @@ -355,7 +355,7 @@ liberator.Tabs = function () //{{{ function (args) { liberator.forceNewTab = true; - liberator.execute(args); + liberator.execute(args.string); liberator.forceNewTab = false; }, {