diff --git a/extensions/typeaheadfind/src/nsTypeAheadFind.cpp b/extensions/typeaheadfind/src/nsTypeAheadFind.cpp index 8c100658da0..ed64de99b4f 100644 --- a/extensions/typeaheadfind/src/nsTypeAheadFind.cpp +++ b/extensions/typeaheadfind/src/nsTypeAheadFind.cpp @@ -639,8 +639,9 @@ nsTypeAheadFind::HandleBackspace() // ---------- No chars in string ------------ if (mTypeAheadBuffer.IsEmpty() || !mStartFindRange) { - if (mRepeatingMode == eRepeatingChar || - mRepeatingMode == eRepeatingCharReverse) { + if (!mFindNextBuffer.IsEmpty() && + (mRepeatingMode == eRepeatingChar || + mRepeatingMode == eRepeatingCharReverse)) { // Backspace to find previous repeated char mTypeAheadBuffer = mFindNextBuffer; mFocusedDocSelection->GetRangeAt(0, getter_AddRefs(mStartFindRange));