From cf993efaf69fcf3482cf0f54881fcf87f0108a0d Mon Sep 17 00:00:00 2001 From: Stephen Blott Date: Fri, 8 May 2015 17:53:39 +0100 Subject: Search completion; exclusion [WIP]. --- background_scripts/completion_engines.coffee | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'background_scripts/completion_engines.coffee') diff --git a/background_scripts/completion_engines.coffee b/background_scripts/completion_engines.coffee index ff10f4b5..badae126 100644 --- a/background_scripts/completion_engines.coffee +++ b/background_scripts/completion_engines.coffee @@ -165,10 +165,8 @@ CompletionEngines = @mostRecentHandler = null query = queryTerms.join "" - # We don't complete less then three characters: the results are usually useless. This also prevents - # one- and two-character custom search engine keywords from being sent to the default completer (e.g. - # the initial "w" before typing "w something" for Wikipedia). - return callback [] unless 3 <= query.length + # We don't complete single characters: the results are usually useless. + return callback [] unless 1 < query.length # We don't complete regular URLs or Javascript URLs. return callback [] if 1 == queryTerms.length and Utils.isUrl query -- cgit v1.2.3