Bug 30088. More checkins to extensions/typeaheadfind. Fixes assertion. Not part of build.

This commit is contained in:
aaronl%netscape.com 2002-07-09 19:46:10 +00:00
Родитель 5b346f43db
Коммит 90e53cad28
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -776,7 +776,7 @@ nsresult nsTypeAheadFind::FindItNow(PRBool aIsLinksOnly, PRBool aIsFirstVisibleP
}
// Last resort, the aardvark rule
if (mTypeAheadBuffer.First() == mTypeAheadBuffer.CharAt(1) &&
if (mTypeAheadBuffer.Length() > 0 && mTypeAheadBuffer.First() == mTypeAheadBuffer.CharAt(1) &&
mTypeAheadBuffer.Last() != mTypeAheadBuffer.First()) {
// The aardvark rule: if they repeat the same character and then change
// first find exactly what they typed, if not there start over with new char