1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-22 23:58:00 +01:00

moved run/system/source to vimperator.io and objectToString to vimp.util

This commit is contained in:
Martin Stubenschrott
2008-02-05 00:12:18 +00:00
parent cb7fef72ba
commit 8c100b78ba
10 changed files with 336 additions and 858 deletions

View File

@@ -926,7 +926,7 @@ vimperator.Commands = function () //{{{
}
if (typeof arg === "object")
arg = vimperator.objectToString(arg, color);
arg = vimperator.util.objectToString(arg, color);
else if (typeof arg === "function")
arg = vimperator.util.escapeHTML(arg.toString());
else if (typeof arg === "number" || typeof arg === "boolean")
@@ -2081,7 +2081,7 @@ vimperator.Commands = function () //{{{
// return;
//}
vimperator.source(args, special);
vimperator.io.source(args, special);
},
{
shortHelp: "Read Ex commands from {file}",
@@ -2471,7 +2471,7 @@ vimperator.Commands = function () //{{{
var prog = args.shift();
args.push(url)
vimperator.callFunctionInThread(newThread, vimperator.run, [prog, args, true]);
vimperator.callFunctionInThread(newThread, vimperator.io.run, [prog, args, true]);
}
else
{
@@ -2572,7 +2572,7 @@ vimperator.Commands = function () //{{{
args = args.replace(/(^|[^\\])!/g, "$1" + lastRunCommand);
lastRunCommand = args;
var output = vimperator.system(args);
var output = vimperator.io.system(args);
if (output)
vimperator.echo(vimperator.util.escapeHTML(output));
},