From 64a54f252cadc1b3ea5865514482cd24e187f6bd Mon Sep 17 00:00:00 2001 From: Stephen Blott Date: Sun, 24 Apr 2016 09:18:10 +0100 Subject: Fix tests following 029741ea2d93031f0c9d5e57ba9cf75546976798. Following 029741ea2d93031f0c9d5e57ba9cf75546976798 (which seemed trivial), I forgot to check the tests (which were in fact broken, and correctly broken). If there is no link-text key queue, then *all* links should match. --- content_scripts/link_hints.coffee | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/content_scripts/link_hints.coffee b/content_scripts/link_hints.coffee index d7f6191e..f44550bc 100644 --- a/content_scripts/link_hints.coffee +++ b/content_scripts/link_hints.coffee @@ -479,9 +479,9 @@ class FilterHints scoreFunction = @scoreLinkHint @linkTextKeystrokeQueue.join "" matchingHintMarkers = hintMarkers - .filter (linkMarker) -> + .filter (linkMarker) => linkMarker.score = scoreFunction linkMarker - 0 < linkMarker.score + 0 < linkMarker.score or 0 == @linkTextKeystrokeQueue.length .sort (a, b) -> if b.score == a.score then b.stableSortCount - a.stableSortCount else b.score - a.score -- cgit v1.2.3