diff options
| author | Stephen Blott | 2015-06-11 06:25:41 +0100 | 
|---|---|---|
| committer | Stephen Blott | 2015-06-11 06:25:41 +0100 | 
| commit | 53d131700e5f33cb9476f00a905c238b0083f3dc (patch) | |
| tree | 2c70dbb9440a1267317cfc066bc6b10180994e23 | |
| parent | 61764d812a37ca2c29b3b7ddde878f25250abf81 (diff) | |
| download | vimium-53d131700e5f33cb9476f00a905c238b0083f3dc.tar.bz2 | |
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.)
| -rw-r--r-- | content_scripts/link_hints.coffee | 2 | 
1 files changed, 1 insertions, 1 deletions
| 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 | 
