diff options
| author | Stephen Blott | 2014-12-31 08:58:06 +0000 | 
|---|---|---|
| committer | Stephen Blott | 2014-12-31 08:58:06 +0000 | 
| commit | 877bf98618ba4f8c2dfdb6a82459a98816062112 (patch) | |
| tree | 59d978957f3033fdea949230527514ddd7508862 /background_scripts | |
| parent | 094753c5a536ebacdaa3f811d198595ef2c67d24 (diff) | |
| download | vimium-877bf98618ba4f8c2dfdb6a82459a98816062112.tar.bz2 | |
Simplify search engine logic.
Diffstat (limited to 'background_scripts')
| -rw-r--r-- | background_scripts/completion.coffee | 2 | 
1 files changed, 1 insertions, 1 deletions
diff --git a/background_scripts/completion.coffee b/background_scripts/completion.coffee index 5cab54ed..d6402019 100644 --- a/background_scripts/completion.coffee +++ b/background_scripts/completion.coffee @@ -344,7 +344,7 @@ class SearchEngineCompleter      this.searchEngines = root.Settings.getSearchEngines()    getSearchEngineMatches: (queryTerms) -> -    if 1 < queryTerms.length and engine = @searchEngines[queryTerms[0]] then engine else {} +    (1 < queryTerms.length and @searchEngines[queryTerms[0]]) or {}  # A completer which calls filter() on many completers, aggregates the results, ranks them, and returns the top  # 10. Queries from the vomnibar frontend script come through a multi completer.  | 
