aboutsummaryrefslogtreecommitdiffstats
path: root/content_scripts/link_hints.coffee
diff options
context:
space:
mode:
authorStephen Blott2015-06-11 06:25:41 +0100
committerStephen Blott2015-06-11 06:25:41 +0100
commit53d131700e5f33cb9476f00a905c238b0083f3dc (patch)
tree2c70dbb9440a1267317cfc066bc6b10180994e23 /content_scripts/link_hints.coffee
parent61764d812a37ca2c29b3b7ddde878f25250abf81 (diff)
downloadvimium-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.)
Diffstat (limited to 'content_scripts/link_hints.coffee')
-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 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