mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-23 12:52:28 +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]"],
|
liberator.commands.add(["vie[wsource]"],
|
||||||
"View source code of current document",
|
"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",
|
argCount: "1",
|
||||||
bang: true
|
bang: true
|
||||||
|
|||||||
@@ -701,7 +701,7 @@ liberator.Events = function () //{{{
|
|||||||
|
|
||||||
liberator.commands.add(["pl[ay]"],
|
liberator.commands.add(["pl[ay]"],
|
||||||
"Replay a recorded macro",
|
"Replay a recorded macro",
|
||||||
function (args) { liberator.events.playMacro(args); },
|
function (args) { liberator.events.playMacro(args.arguments[0]); },
|
||||||
{
|
{
|
||||||
argCount: "1",
|
argCount: "1",
|
||||||
completer: function (filter) liberator.completion.macro(filter)
|
completer: function (filter) liberator.completion.macro(filter)
|
||||||
|
|||||||
@@ -167,6 +167,8 @@ const liberator = (function () //{{{
|
|||||||
"Open a " + liberator.config.name + " dialog",
|
"Open a " + liberator.config.name + " dialog",
|
||||||
function (args)
|
function (args)
|
||||||
{
|
{
|
||||||
|
args = args.arguments[0];
|
||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
var dialogs = liberator.config.dialogs || [];
|
var dialogs = liberator.config.dialogs || [];
|
||||||
@@ -407,6 +409,8 @@ const liberator = (function () //{{{
|
|||||||
"Profile a piece of code or run a command multiple times",
|
"Profile a piece of code or run a command multiple times",
|
||||||
function (args, special, count)
|
function (args, special, count)
|
||||||
{
|
{
|
||||||
|
args = args.string;
|
||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
if (count > 1)
|
if (count > 1)
|
||||||
|
|||||||
@@ -355,7 +355,7 @@ liberator.Tabs = function () //{{{
|
|||||||
function (args)
|
function (args)
|
||||||
{
|
{
|
||||||
liberator.forceNewTab = true;
|
liberator.forceNewTab = true;
|
||||||
liberator.execute(args);
|
liberator.execute(args.string);
|
||||||
liberator.forceNewTab = false;
|
liberator.forceNewTab = false;
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user