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

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

This commit is contained in:
Martin Stubenschrott
2007-11-13 22:43:48 +00:00
parent 479928bd64
commit 77b1de73ce
3 changed files with 35 additions and 29 deletions

View File

@@ -813,7 +813,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)
{
@@ -989,7 +990,7 @@ vimperator.Commands = function () //{{{
{
try
{
eval(args);
eval("with(vimperator){" + args + "}");
}
catch (e)
{
@@ -2018,7 +2019,7 @@ vimperator.Commands = function () //{{{
else
{
while (i--)
eval(args);
eval("with(vimperator){" + args + "}");
}
if (special)
@@ -2064,7 +2065,7 @@ vimperator.Commands = function () //{{{
if (args && args[0] == ":")
vimperator.execute(args);
else
eval(args);
eval("with(vimperator){" + args + "}");
if (special)
return;