From 208270b58e7e4dd18407ea8c176f0518df6051d1 Mon Sep 17 00:00:00 2001 From: Stephen Blott Date: Thu, 21 May 2015 09:25:22 +0100 Subject: Search completion; must return an array from this filter. --- background_scripts/completion.coffee | 2 ++ 1 file changed, 2 insertions(+) (limited to 'background_scripts/completion.coffee') diff --git a/background_scripts/completion.coffee b/background_scripts/completion.coffee index 98a82f88..ad509cc5 100644 --- a/background_scripts/completion.coffee +++ b/background_scripts/completion.coffee @@ -491,6 +491,8 @@ class SearchEngineCompleter defaultUrl = Utils.createSearchUrl queryTerms, searchUrl defaultQuery = queryTerms.join " " suggestions.filter (suggestion) -> Utils.extractQuery(searchUrl, suggestion.url) != defaultQuery + else + suggestions # If a previous suggestion still matches the query, then we keep it (even if the completion engine may not # return it for the current query). This allows the user to pick suggestions by typing fragments of their -- cgit v1.2.3