aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStephen Blott2015-05-13 19:34:34 +0100
committerStephen Blott2015-05-13 19:34:34 +0100
commit176cac1249e1ee063ef0cadf05d7b090650686fb (patch)
tree7790c57bd4dca75f950f643311f0bd9c9901c8f3
parentbfe630f6f3a6c481e1fdd4895c18243af0939653 (diff)
downloadvimium-176cac1249e1ee063ef0cadf05d7b090650686fb.tar.bz2
Search completion; ensure wighting fact stays within bounds.
-rw-r--r--background_scripts/completion.coffee2
1 files changed, 1 insertions, 1 deletions
diff --git a/background_scripts/completion.coffee b/background_scripts/completion.coffee
index 8f99b90e..ebf56dde 100644
--- a/background_scripts/completion.coffee
+++ b/background_scripts/completion.coffee
@@ -421,7 +421,7 @@ class SearchEngineCompleter
return onComplete [] unless custom or 0 < queryTerms.length
- factor = Settings.get "omniSearchWeight"
+ factor = Math.max 0, Math.min 1, Settings.get "omniSearchWeight"
haveCompletionEngine = (0.0 < factor or custom) and CompletionSearch.haveCompletionEngine searchUrl
# Relevancy: