Bug 197157. Find as you type not wrapping - fixing regression. r=kyle, sr=sfraser
git-svn-id: svn://10.0.0.236/trunk@140500 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -912,7 +912,8 @@ nsTypeAheadFind::HandleChar(PRUnichar aChar)
|
||||
}
|
||||
|
||||
#ifndef NO_LINK_CYCLE_ON_SAME_CHAR
|
||||
if (NS_FAILED(rv) && !mLiteralTextSearchOnly && mAllTheSameChar) {
|
||||
if (NS_FAILED(rv) && !mLiteralTextSearchOnly && mAllTheSameChar &&
|
||||
mTypeAheadBuffer.Length() > 1) {
|
||||
mRepeatingMode = eRepeatingChar;
|
||||
mDontTryExactMatch = PR_TRUE; // Repeated character find mode
|
||||
rv = FindItNow(nsnull, PR_TRUE, PR_TRUE, mIsFirstVisiblePreferred);
|
||||
@@ -1345,7 +1346,7 @@ nsTypeAheadFind::FindItNow(nsIPresShell *aPresShell,
|
||||
break;
|
||||
}
|
||||
}
|
||||
else if (!hasTriedFirstDoc) { // Avoid potential infinite loop
|
||||
else if (hasTriedFirstDoc) { // Avoid potential infinite loop
|
||||
return NS_ERROR_FAILURE; // No content doc shells
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user