1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-02-27 11:55:46 +01:00

Cancel the search when an incsearch fails. embedcomp/rangefind may need to go given the difficulties presented by iframes.

This commit is contained in:
Kris Maglione
2008-10-18 17:43:18 +00:00
parent 4d8ab3530e
commit ca28d52ed4

View File

@@ -212,7 +212,10 @@ function Search() //{{{
{ {
liberator.dump(this.wrapped); liberator.dump(this.wrapped);
if (this.wrapped) if (this.wrapped)
{
this.cancel();
return null; return null;
}
this.wrapped = true; this.wrapped = true;
lastRange = this.backward ? pageEnd : pageStart; lastRange = this.backward ? pageEnd : pageStart;
return this.search(again ? null : word, reverse); return this.search(again ? null : word, reverse);