aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStephen Blott2015-05-18 15:34:25 +0100
committerStephen Blott2015-05-18 15:34:25 +0100
commit31807f8c44c6d032cf9ba5ce0f8507c4e716da8c (patch)
treec1c0b1a120d069dd5192e08ec2be802853b106c0
parent6026e7bc2dd99e947d06ba2dce29e3d3eac47a91 (diff)
downloadvimium-31807f8c44c6d032cf9ba5ce0f8507c4e716da8c.tar.bz2
Fully fix 3646b8c999a9e4b864e8c529f84b64a3c2c74ff0.
-rw-r--r--background_scripts/completion.coffee28
1 files changed, 13 insertions, 15 deletions
diff --git a/background_scripts/completion.coffee b/background_scripts/completion.coffee
index 1ed92034..21214a0f 100644
--- a/background_scripts/completion.coffee
+++ b/background_scripts/completion.coffee
@@ -510,21 +510,19 @@ class SearchEngineCompleter
highlightTerms: not haveCompletionEngine
isSearchSuggestion: true
- mkSuggestion = do =>
- count = 0
- (suggestion) =>
- url = Utils.createSearchUrl suggestion, searchUrl
- @previousSuggestions[url] = new Suggestion
- queryTerms: queryTerms
- type: description
- url: url
- title: suggestion
- insertText: suggestion
- highlightTerms: false
- highlightTermsExcludeUrl: true
- isCustomSearch: custom
- relevancyFunction: @computeRelevancy
- relevancyData: factor
+ mkSuggestion = (suggestion) =>
+ url = Utils.createSearchUrl suggestion, searchUrl
+ @previousSuggestions[url] = new Suggestion
+ queryTerms: queryTerms
+ type: description
+ url: url
+ title: suggestion
+ insertText: suggestion
+ highlightTerms: false
+ highlightTermsExcludeUrl: true
+ isCustomSearch: custom
+ relevancyFunction: @computeRelevancy
+ relevancyData: factor
cachedSuggestions =
if haveCompletionEngine then CompletionSearch.complete searchUrl, queryTerms else null