marijnh/CodeMirror — pull request #912 by haldean (2012-10-29 23:46:49+00:00)
Title: Fix f and t motion in vim mode

The current behavior differs from vim; given the following line with the cursor at `$`:

$hello-there

Typing `f-` in normal mode should put the cursor on the `-`, and typing `t-` should put you on the `o` in hello. Current behavior in CodeMirror puts the cursor one character to the right of where it should be when searching left-to-right (`f-` puts the cursor on the `t`, `t-` puts the cursor on `-`), but behaves correctly when searching right-to-left.