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

Fix "pattern not found" text search error message.

This commit is contained in:
Doug Kearns
2009-11-10 18:28:20 +11:00
parent e04cc5dd33
commit efaba491cd

View File

@@ -237,8 +237,10 @@ const Finder = Module("finder", {
fastFind.caseSensitive = this._caseSensitive;
this._found = fastFind.find(this._searchString, this._linksOnly) != Ci.nsITypeAheadFind.FIND_NOTFOUND;
if (!this._found)
setTimeout(function () liberator.echoerr("E486: Pattern not found: " + this._searchPattern, commandline.FORCE_SINGLELINE), 0);
if (!this._found) {
let self = this; // XXX
setTimeout(function () liberator.echoerr("E486: Pattern not found: " + self._searchPattern, commandline.FORCE_SINGLELINE), 0);
}
},
/**