1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-23 18:02: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

@@ -623,7 +623,7 @@ const vimperator = (function () //{{{
// handle pure javascript files specially
if (filename.search("\.js$") != -1)
{
eval(str);
eval("with(vimperator){" + str + "}");
}
else
{
@@ -635,7 +635,7 @@ const vimperator = (function () //{{{
{
if (heredocEnd.test(line))
{
eval(heredoc);
eval("with(vimperator){" + heredoc + "}");
heredoc = "";
heredocEnd = null;
}