diff options
| author | Phil Crosby | 2011-07-22 23:34:59 -0700 |
|---|---|---|
| committer | Phil Crosby | 2011-07-22 23:34:59 -0700 |
| commit | 8f65e96ecffc4a0daa480d1288040d7c9c537bef (patch) | |
| tree | 3aa4f8cdfec1f2d96b133288205e98efe8dac422 /linkHints.js | |
| parent | 4d3c49d662d6e2674e2090d24adffd89745fc990 (diff) | |
| parent | 325e8b8e3b31ae2a7379f32e657bdade8a2efe0d (diff) | |
| download | vimium-8f65e96ecffc4a0daa480d1288040d7c9c537bef.tar.bz2 | |
Merge pull request #373 from holygeek/master
scatter-link-hints (rebased on top of latest master as of 2011-07-16)
Diffstat (limited to 'linkHints.js')
| -rw-r--r-- | linkHints.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/linkHints.js b/linkHints.js index e3ecacfb..f4ffc768 100644 --- a/linkHints.js +++ b/linkHints.js @@ -369,6 +369,12 @@ var alphabetHints = { var hintStringLength = hintString.length; for (var i = 0; i < numHintDigits - hintStringLength; i++) hintString.unshift(settings.get('linkHintCharacters')[0]); + + // Reversing the hint string has the advantage of making the link hints + // appear to spread out after the first key is hit. This is helpful on a + // page that has http links that are close to each other where link hints + // of 2 characters or more occlude each other. + hintString.reverse(); return hintString.join(""); }, |
