aboutsummaryrefslogtreecommitdiffstats
path: root/git_hooks/pre-commit
diff options
context:
space:
mode:
authorStephen Blott2015-01-20 06:10:31 +0000
committerStephen Blott2015-01-20 06:22:15 +0000
commit45dd6235a31fecfd3235db9881ddfad8e5a2835a (patch)
tree91a6a1e894aadc87441df35411bdc537c9defd60 /git_hooks/pre-commit
parente700982a20737bdc1cf0c4babaa2c199a53a1300 (diff)
downloadvimium-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