From 15d0147b6af2a166ede1a190b653ccd7a0c39983 Mon Sep 17 00:00:00 2001 From: "ajschult%verizon.net" Date: Sat, 28 Jan 2006 01:20:34 +0000 Subject: [PATCH] Perform autocomplete search even if cursor is not at the end rather than leave stale entries. bug 208871, r=jag, sr=Neil. --- .../autocomplete/resources/content/autocomplete.xml | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/xpfe/components/autocomplete/resources/content/autocomplete.xml b/xpfe/components/autocomplete/resources/content/autocomplete.xml index 156e050517d..819e632c543 100644 --- a/xpfe/components/autocomplete/resources/content/autocomplete.xml +++ b/xpfe/components/autocomplete/resources/content/autocomplete.xml @@ -851,11 +851,7 @@ this.resultsPopup.selectedIndex = null; this.removeAttribute("noMatchesFound"); - // We want to autocomplete only if the user is editing at the end of the text - if (this.mInputElt.selectionEnd >= str.length) - this.mAutoCompleteTimer = setTimeout(this.callListener, this.timeout, this, "startLookup"); - else - this.noMatch = true; + this.mAutoCompleteTimer = setTimeout(this.callListener, this.timeout, this, "startLookup"); ]]> @@ -1021,7 +1017,9 @@