aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorguns2012-08-09 07:31:12 -0500
committerguns2012-08-09 07:31:12 -0500
commitf41e1e63990b3b12654541374a0930c1fbff1adf (patch)
tree0981414b4f53ecb3a656ebea9ffa3afb6a9235e1
parenta77dbd42dae9984d30f3b1f63ef8240a9e927fc9 (diff)
downloadvimium-f41e1e63990b3b12654541374a0930c1fbff1adf.tar.bz2
Fix regression in shuffleHints()
Index variable `i` accidentally undeclared in `for in` loop cf. ed21d9b1abe42c1556f27390476302a1393dedb8
-rw-r--r--content_scripts/link_hints.coffee2
1 files changed, 1 insertions, 1 deletions
diff --git a/content_scripts/link_hints.coffee b/content_scripts/link_hints.coffee
index 361b5c74..34ecb431 100644
--- a/content_scripts/link_hints.coffee
+++ b/content_scripts/link_hints.coffee
@@ -301,7 +301,7 @@ alphabetHints =
#
shuffleHints: (hints, characterSetLength) ->
buckets = ([] for i in [0...characterSetLength] by 1)
- for hint in hints
+ for hint, i in hints
buckets[i % buckets.length].push(hint)
result = []
for bucket in buckets