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