next_ocur does not work
Created by: ducks
Reproduction: enter insert mode. type "this is some zest". use shift+space to drop back into normal mode. use gg to go back to the start of the line. use "tz" to find the z in zest.
Expected behavior: cursor goes to the z in zest
Actual behavior: cursor stays at the beginning of the line
Build information: rustc 1.10.0-nightly (0667ae93f 2016-05-17) 707e6f10 Darwin Kernel Version 15.4.0, El Capitan 10.11.4, x86_64
This issue seems to be caused by this line: https://github.com/redox-os/sodium/blob/master/src/caret/movement.rs#L146
I tried printing out the n and dn and it seems like the n always came in as 1 and the dn is set at 0 so that if would never fire. I tried multiple lines and n still seemed to be 1.
I see that n is set here: https://github.com/redox-os/sodium/blob/master/src/core/exec.rs#L18 but have not tracked down where that comes from and what it does just yet.
next_ocur() also seems to just return the x that was passed to it: https://github.com/redox-os/sodium/blob/master/src/caret/movement.rs#L150