diff options
| author | Stephen Blott | 2016-04-24 09:18:10 +0100 |
|---|---|---|
| committer | Stephen Blott | 2016-04-24 09:18:12 +0100 |
| commit | 64a54f252cadc1b3ea5865514482cd24e187f6bd (patch) | |
| tree | 51924c1146465ff2003e5ffcc579e687423829ba | |
| parent | 029741ea2d93031f0c9d5e57ba9cf75546976798 (diff) | |
| download | vimium-64a54f252cadc1b3ea5865514482cd24e187f6bd.tar.bz2 | |
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.
| -rw-r--r-- | content_scripts/link_hints.coffee | 4 |
1 files 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 |
