diff options
| author | Stephen Blott | 2015-01-20 06:10:31 +0000 |
|---|---|---|
| committer | Stephen Blott | 2015-01-20 06:22:15 +0000 |
| commit | 45dd6235a31fecfd3235db9881ddfad8e5a2835a (patch) | |
| tree | 91a6a1e894aadc87441df35411bdc537c9defd60 /git_hooks/pre-commit | |
| parent | e700982a20737bdc1cf0c4babaa2c199a53a1300 (diff) | |
| download | vimium-45dd6235a31fecfd3235db9881ddfad8e5a2835a.tar.bz2 | |
Minor refactoring of isSelected().
There's no point in focusing element if it's already active.
Also, we leave the caret in place, not just a range selection.
isSelected makes the wrong decision if the user has placed the caret at
the start of element. We cannot distinguish that case from the user
having made no selection. Nevertheless, this is substantially better
than the existing UX, which *always* moves the caret to the end.
Diffstat (limited to 'git_hooks/pre-commit')
0 files changed, 0 insertions, 0 deletions
