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

vimperator is default namespace for scripts, :echo, :js and :time now, so if (options["visualbell"]) ... works there

This commit is contained in:
Doug Kearns
2007-11-22 15:13:03 +00:00
parent dbc37525e6
commit 591b606b5c
3 changed files with 35 additions and 29 deletions

View File

@@ -499,7 +499,8 @@ vimperator.Commands = function () //{{{
try
{
// TODO: move to vimperator.eval()?
arg = eval(arg);
// with (vimperator) means, vimperator is the default namespace "inside" eval
arg = eval("with(vimperator){" + arg + "}");
}
catch (e)
{
@@ -666,7 +667,7 @@ vimperator.Commands = function () //{{{
{
try
{
eval(args);
eval("with(vimperator){" + args + "}");
}
catch (e)
{
@@ -1567,7 +1568,7 @@ vimperator.Commands = function () //{{{
else
{
while (i--)
eval(args);
eval("with(vimperator){" + args + "}");
}
if (special)
@@ -1613,7 +1614,7 @@ vimperator.Commands = function () //{{{
if (args && args[0] == ":")
vimperator.execute(args);
else
eval(args);
eval("with(vimperator){" + args + "}");
if (special)
return;