aboutsummaryrefslogtreecommitdiffstats
path: root/background_scripts/completion.coffee
diff options
context:
space:
mode:
Diffstat (limited to 'background_scripts/completion.coffee')
-rw-r--r--background_scripts/completion.coffee5
1 files changed, 2 insertions, 3 deletions
diff --git a/background_scripts/completion.coffee b/background_scripts/completion.coffee
index d3d54521..8f99b90e 100644
--- a/background_scripts/completion.coffee
+++ b/background_scripts/completion.coffee
@@ -435,7 +435,7 @@ class SearchEngineCompleter
# a useful suggestion from another completer.
#
characterCount = query.length - queryTerms.length + 1
- relevancy = (if custom then 0.9 else factor) * (Math.min(characterCount, 10.0)/10.0)
+ relevancy = (if custom then 0.9 else factor) * (Math.min(characterCount, 12.0)/12.0)
# This filter is applied to all of the suggestions from all of the completers.
filter = (suggestions) ->
@@ -483,12 +483,11 @@ class SearchEngineCompleter
# Make the first suggestion float to the top of the vomnibar (except if we would be competing with the
# domain completer, which also assigns a relevancy of 1).
if 0 < completions.length
- if custom or (1 < queryTerms.length or /\S\s/.test query)
+ if custom # or (1 < queryTerms.length or /\S\s/.test query)
extend completions[0],
relevancy: 1
autoSelect: custom
forceAutoSelect: custom
- isPrimarySuggestion: custom
insertText: null
onComplete completions, args...