diff options
Diffstat (limited to 'background_scripts')
| -rw-r--r-- | background_scripts/completion.coffee | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/background_scripts/completion.coffee b/background_scripts/completion.coffee index a75cf6b5..795b4658 100644 --- a/background_scripts/completion.coffee +++ b/background_scripts/completion.coffee @@ -385,6 +385,9 @@ class SearchEngineCompleter suggestions.push @mkSuggestion true, queryTerms, type, mkUrl(suggestion), suggestion, @computeRelevancy, score score *= 0.9 + # Experimental. Force the best match to the top of the list. + suggestions[0].extraRelevancyData = 0.9999999 if 0 < suggestions.length + if custom # For custom search engines, we need to tell the front end to insert the search engine's keyword # when copying a suggestion into the vomnibar. |
