aboutsummaryrefslogtreecommitdiffstats
path: root/background_scripts/completion.coffee
diff options
context:
space:
mode:
authorStephen Blott2012-11-05 15:13:44 +0000
committerStephen Blott2012-11-05 15:13:44 +0000
commit450f0ec3e105a3c0eeeeac1fc2c9d58c2fc88597 (patch)
tree0b7f3bb1f234f84aa2fdbf62da19bcd5848da2d6 /background_scripts/completion.coffee
parentc0b317a62ae4552d6be32ab066f2514d1fd683eb (diff)
downloadvimium-450f0ec3e105a3c0eeeeac1fc2c9d58c2fc88597.tar.bz2
Looks like missing parentheses.
This is looks wrong, and is inconsistent with the way the equivalent calculation is handled elsewhere. This commit fixes it.
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