From dbc7acf4046fe5558624e1bd75a320e51647df22 Mon Sep 17 00:00:00 2001 From: "blakeross%telocity.com" Date: Sun, 3 Mar 2002 19:43:30 +0000 Subject: [PATCH] 117622 - urlbar search forgets edits. r=ben sr=hewitt a=roc+moz git-svn-id: svn://10.0.0.236/trunk@115681 18797224-902f-48f8-a5cc-f745e15eee43 --- .../autocomplete/resources/content/autocomplete.xml | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/mozilla/xpfe/components/autocomplete/resources/content/autocomplete.xml b/mozilla/xpfe/components/autocomplete/resources/content/autocomplete.xml index add9375b308..184db478b86 100644 --- a/mozilla/xpfe/components/autocomplete/resources/content/autocomplete.xml +++ b/mozilla/xpfe/components/autocomplete/resources/content/autocomplete.xml @@ -496,8 +496,6 @@ @@ -796,11 +793,12 @@ this.mNeedToFinish = true; this.mTransientValue = false; this.mNeedToComplete = true; - + var str = this.value; + this.currentSearchString = str; this.resultsPopup.selectedIndex = null; // We want to autocomplete only if the user is editing at the end of the text - if (this.mInputElt.selectionEnd >= this.value.length) + if (this.mInputElt.selectionEnd >= str.length) this.mAutoCompleteTimer = setTimeout(this.callListener, this.timeout, this, "startLookup"); else this.noMatch = true;