diff options
| author | Stephen Blott | 2015-05-18 15:34:25 +0100 | 
|---|---|---|
| committer | Stephen Blott | 2015-05-18 15:34:25 +0100 | 
| commit | 31807f8c44c6d032cf9ba5ce0f8507c4e716da8c (patch) | |
| tree | c1c0b1a120d069dd5192e08ec2be802853b106c0 /background_scripts/completion.coffee | |
| parent | 6026e7bc2dd99e947d06ba2dce29e3d3eac47a91 (diff) | |
| download | vimium-31807f8c44c6d032cf9ba5ce0f8507c4e716da8c.tar.bz2 | |
Fully fix 3646b8c999a9e4b864e8c529f84b64a3c2c74ff0.
Diffstat (limited to 'background_scripts/completion.coffee')
| -rw-r--r-- | background_scripts/completion.coffee | 28 | 
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 | 
