From 53d131700e5f33cb9476f00a905c238b0083f3dc Mon Sep 17 00:00:00 2001 From: Stephen Blott Date: Thu, 11 Jun 2015 06:25:41 +0100 Subject: Make "a-z" characters work in filter hints mode. When we read hint characters, we read them lower case. When we generate hint markers, we generate them upper case. So they never match. (Exactly why anyone would want to use "abcde" for filtered link hints isn't clear, but at least we should behave correctly.) --- content_scripts/link_hints.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content_scripts/link_hints.coffee b/content_scripts/link_hints.coffee index 15af15c5..1be762c6 100644 --- a/content_scripts/link_hints.coffee +++ b/content_scripts/link_hints.coffee @@ -532,7 +532,7 @@ class FilterHints # input. use them to filter the link hints accordingly. matchString = @hintKeystrokeQueue.join "" linksMatched = @filterLinkHints hintMarkers - linksMatched = linksMatched.filter (linkMarker) -> linkMarker.hintString.startsWith matchString + linksMatched = linksMatched.filter (linkMarker) -> linkMarker.hintString.toLowerCase().startsWith matchString if linksMatched.length == 1 && @hintKeystrokeQueue.length == 0 and 0 < @linkTextKeystrokeQueue.length # In filter mode, people tend to type out words past the point needed for a unique match. Hence we -- cgit v1.2.3