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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user