From 6e7925d8377d780276737cdc5f0f74a6b9ba4fdb Mon Sep 17 00:00:00 2001 From: "aaronl%netscape.com" Date: Fri, 12 Jul 2002 08:10:13 +0000 Subject: [PATCH] Not part of build. Typeaheadfind: clean up emacsish/repeated character logic --- extensions/typeaheadfind/nsTypeAheadFind.cpp | 2 +- extensions/typeaheadfind/nsTypeAheadFind.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/extensions/typeaheadfind/nsTypeAheadFind.cpp b/extensions/typeaheadfind/nsTypeAheadFind.cpp index fdde668dcc8..6fe9d2cdca6 100644 --- a/extensions/typeaheadfind/nsTypeAheadFind.cpp +++ b/extensions/typeaheadfind/nsTypeAheadFind.cpp @@ -566,7 +566,7 @@ NS_IMETHODIMP nsTypeAheadFind::KeyPress(nsIDOMEvent* aEvent) gIsFindingText = PR_TRUE; // prevents listener callbacks from resetting us during typeahead find processing - nsresult rv; + nsresult rv = NS_ERROR_FAILURE; #ifndef PREFER_LINK_CYCLE_ON_SAME_CHAR if (!mDontTryExactMatch) diff --git a/extensions/typeaheadfind/nsTypeAheadFind.h b/extensions/typeaheadfind/nsTypeAheadFind.h index 5eca8b962b0..a8b10f3b5e5 100644 --- a/extensions/typeaheadfind/nsTypeAheadFind.h +++ b/extensions/typeaheadfind/nsTypeAheadFind.h @@ -155,6 +155,7 @@ protected: PRInt32 mTimeoutLength; // Amount of time before find is automatically cancelled static PRBool gIsFindingText; // this flag prevents side effects from listener callbacks while selecting/focusing found text nsCOMPtr mStartFindRange; // where selection was when user started the find + nsCOMPtr mOverrideStartPointRange; #ifdef RESTORE_SEARCH // Old nsIFindService state