diff options
| author | Stephen Blott | 2016-01-29 08:11:02 +0000 | 
|---|---|---|
| committer | Stephen Blott | 2016-01-29 08:11:02 +0000 | 
| commit | 5e65d6bb14c86be2cac95e6d7b61a0fbde1c76cc (patch) | |
| tree | 670fc298685081a2ec5481b99c37bad0bcfa3112 /content_scripts/link_hints.coffee | |
| parent | d6a7ea0094f8071f1785539ccd167ed371bd3bb9 (diff) | |
| download | vimium-5e65d6bb14c86be2cac95e6d7b61a0fbde1c76cc.tar.bz2 | |
Simplify hint-string generation; tweaks.
Diffstat (limited to 'content_scripts/link_hints.coffee')
| -rw-r--r-- | content_scripts/link_hints.coffee | 6 | 
1 files changed, 2 insertions, 4 deletions
| diff --git a/content_scripts/link_hints.coffee b/content_scripts/link_hints.coffee index 1bb40b90..07deaf61 100644 --- a/content_scripts/link_hints.coffee +++ b/content_scripts/link_hints.coffee @@ -416,8 +416,6 @@ class LinkHintsMode  # Use characters for hints, and do not filter links by their text.  class AlphabetHints -  logXOfBase: (x, base) -> Math.log(x) / Math.log(base) -    constructor: ->      @linkHintCharacters = Settings.get "linkHintCharacters"      # We use the keyChar from keydown if the link-hint characters are all "a-z0-9".  This is the default @@ -447,8 +445,8 @@ class AlphabetHints        hints.push ch + hint for ch in @linkHintCharacters      hints = hints[offset...offset+linkCount] -    # Shuffle the hints so that they're scattered; hints starting with the same character are spread evenly -    # throughout the array. +    # Shuffle the hints so that they're scattered; hints starting with the same character and short hints are +    # spread evenly throughout the array.      return hints.sort().map (str) -> str.reverse()    getMatchingHints: (hintMarkers) -> | 
