aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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: