aboutsummaryrefslogtreecommitdiffstats
path: root/background_scripts/completion.coffee
diff options
context:
space:
mode:
authorStephen Blott2015-05-21 09:25:22 +0100
committerStephen Blott2015-05-21 09:25:22 +0100
commit208270b58e7e4dd18407ea8c176f0518df6051d1 (patch)
tree4e3e4e61c3ae80d57ca32c7497aa48b048eaf016 /background_scripts/completion.coffee
parent980f03c4250c87e64535ff4964f9c8cd45fa80bf (diff)
downloadvimium-208270b58e7e4dd18407ea8c176f0518df6051d1.tar.bz2
Search completion; must return an array from this filter.
Diffstat (limited to 'background_scripts/completion.coffee')
-rw-r--r--background_scripts/completion.coffee2
1 files changed, 2 insertions, 0 deletions
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