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