guillermooo / Vintageous

Vi/Vim emulation for Sublime Text 3
http://guillermooo.bitbucket.org/Vintageous/
Other
1.64k stars 115 forks source link

Ctrl+e, Ctrl+y / normal mode cursor: bad interaction with wrapped lines #998

Open awan1 opened 9 years ago

awan1 commented 9 years ago

When in normal mode, ctrl+e and ctrl+y will not move the screen past the top/bottom of the window if the caret is on the vrey end of a wrapped line.

Location where movements will not work: Location where movements will not work

Location where movements will work: Location where movements will work

The character that the caret ends up on does not seem to be accessible in insert mode, because when a is pressed it goes to after the first character on the next line. It is not on a whitespace character, and when moving one space to the right from that position the cursor ends up on the second letter on the next line, not the first. So this is possibly a bug where the normal mode cursor should move to the next line instead of to the post-final character on a wrapped line.

Showing how the cursor is not on a whitespace character: Showing how the cursor is not on a whitespace character

If I can help solve this bug, please let me know. I haven't contributed so I don't know where to even start looking, but I'd like to help if I can.

awan1 commented 9 years ago

Also, if the top line on the screen is a wrapped line and the cursor is anywhere on the wrapped line, ctrl+e moves the cursor to the end of that wrapped line instead of scrolling, and then further ctrl+e commands don't work because the cursor is in that position.