1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-20 09:48:00 +01:00

Allow negating the regular expression in :autocmd.

This commit is contained in:
Kris Maglione
2010-10-04 23:48:19 -04:00
parent d07b7c8c52
commit c747734f1e
5 changed files with 20 additions and 19 deletions

View File

@@ -478,7 +478,7 @@ const JavaScript = Module("javascript", {
let string = this._str.substring(this._get(-1).offset + 1, this._lastIdx);
// This is definitely a properly quoted string.
// Just eval it normally.
string = eval(this._last + string + this._last);
string = window.eval(this._last + string + this._last);
// Is this an object accessor?
if (this._get(-2).char == "[") { // Are we inside of []?
@@ -536,7 +536,7 @@ const JavaScript = Module("javascript", {
args.push(key + string);
let compl = function (context, obj) {
let res = completer.call(self, context, funcName, obj, args);
let res = completer.call(this, context, funcName, obj, args);
if (res)
context.completions = res;
};