aboutsummaryrefslogtreecommitdiffstats
path: root/background_scripts/completion.coffee
diff options
context:
space:
mode:
authorJez Ng2012-11-09 14:14:42 -0800
committerJez Ng2012-11-09 14:14:42 -0800
commit8b09b8524ff7dedf4cd2e8448522920beb9c68f5 (patch)
tree7729332f27213e536d73813f24e9dc8b7da0602e /background_scripts/completion.coffee
parent06863a5fba5ed3c1456ce393753513b642bc1f74 (diff)
parent8b02be8162033c77a68e75f4d9cff612f30d4edd (diff)
downloadvimium-8b09b8524ff7dedf4cd2e8448522920beb9c68f5.tar.bz2
Merge pull request #707 from smblott-github/small-bugs
Minor fixes.
Diffstat (limited to 'background_scripts/completion.coffee')
-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 9e12d497..e959d358 100644
--- a/background_scripts/completion.coffee
+++ b/background_scripts/completion.coffee
@@ -171,7 +171,7 @@ class DomainCompleter
for domain in domainCandidates
recencyScore = RankingUtils.recencyScore(@domains[domain].lastVisitTime || 0)
wordRelevancy = RankingUtils.wordRelevancy(queryTerms, domain, null)
- score = wordRelevancy + Math.max(recencyScore, wordRelevancy) / 2
+ score = (wordRelevancy + Math.max(recencyScore, wordRelevancy)) / 2
results.push([domain, score])
results.sort (a, b) -> b[1] - a[1]
results