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

@@ -516,7 +516,7 @@ const vimperator = (function () //{{{
// handle pure javascript files specially
if (/\.js$/.test(filename))
{
eval(str);
eval("with(vimperator){" + str + "}");
}
else
{
@@ -528,7 +528,7 @@ const vimperator = (function () //{{{
{
if (heredoc_end.test(line))
{
eval(heredoc);
eval("with(vimperator){" + heredoc + "}");
heredoc = "";
heredoc_end = null;
}