From efaba491cd5aec4c635709765b8a42863aa23114 Mon Sep 17 00:00:00 2001 From: Doug Kearns Date: Tue, 10 Nov 2009 18:28:20 +1100 Subject: [PATCH] Fix "pattern not found" text search error message. --- common/content/finder.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/common/content/finder.js b/common/content/finder.js index 0003699d..f4fab7d5 100644 --- a/common/content/finder.js +++ b/common/content/finder.js @@ -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); + } }, /**