diff options
Diffstat (limited to 'background_scripts/completion.coffee')
| -rw-r--r-- | background_scripts/completion.coffee | 4 | 
1 files changed, 3 insertions, 1 deletions
| diff --git a/background_scripts/completion.coffee b/background_scripts/completion.coffee index 30a7b882..dc2c9360 100644 --- a/background_scripts/completion.coffee +++ b/background_scripts/completion.coffee @@ -464,7 +464,7 @@ class SearchEngineCompleter          searchUrl: Settings.get "searchUrl"          description: "search" -    return onComplete [] unless custom or 0 < queryTerms.length +    return onComplete [] unless custom      factor = Math.max 0.0, Math.min 1.0, Settings.get "omniSearchWeight"      haveCompletionEngine = (0.0 < factor or custom) and CompletionSearch.haveCompletionEngine searchUrl @@ -514,6 +514,8 @@ class SearchEngineCompleter        highlightTerms: not haveCompletionEngine        isSearchSuggestion: true +    return onComplete [ primarySuggestion ], { filter } if queryTerms.length == 0 +      mkSuggestion = (suggestion) =>        url = Utils.createSearchUrl suggestion, searchUrl        @previousSuggestions[url] = new Suggestion | 
