From c01cab11b134f29572d2fa3aa20030f69c843e0b Mon Sep 17 00:00:00 2001 From: "aaronl%netscape.com" Date: Wed, 29 Jan 2003 03:39:36 +0000 Subject: [PATCH] Bug 190755. Backspace sometimes crashing find as you type. r=timeless, sr=jst, a=dbaron git-svn-id: svn://10.0.0.236/trunk@137058 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/extensions/typeaheadfind/src/nsTypeAheadFind.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mozilla/extensions/typeaheadfind/src/nsTypeAheadFind.cpp b/mozilla/extensions/typeaheadfind/src/nsTypeAheadFind.cpp index 23af09ffea8..8e09c149841 100644 --- a/mozilla/extensions/typeaheadfind/src/nsTypeAheadFind.cpp +++ b/mozilla/extensions/typeaheadfind/src/nsTypeAheadFind.cpp @@ -730,11 +730,13 @@ nsTypeAheadFind::HandleBackspace() if (mTypeAheadBuffer.Length() == 1 && mRepeatingMode != eRepeatingCharReverse) { if (mStartFindRange) { + mIsFindingText = PR_TRUE; // Prevent selection listener side effects mFocusedDocSelection->RemoveAllRanges(); mFocusedDocSelection->AddRange(mStartFindRange); } mFocusedDocSelection->CollapseToStart(); + mIsFindingText = PR_FALSE; CancelFind(); mIsBackspaceProtectOn = PR_TRUE;