Closed dpc closed 8 years ago
Hi @dpc!
Are you running off the latest master? I just re-built my copy and don't see this issue. The latest commit in your tree should be c349d0b4e4021730650ab4c235c4c23c9bc0f8f0?
Yesterdays master branch, yes. In vi mode use j
on an empty buffer.
I can confirm it. Adding text, returning to normal mode, and using 'j' will produce the same error, too. The latest commit, c349d0b, is in the source directory.
Yep, I see it too. It happens when you try move to the end of any buffer, regardless of content or editor mode. The source of the issue is get_line_index_forward
in buffer.rs
. Trying to find a nice solution at the moment...
On line 330, nlines
is a list of the buffer indices of all the newlines after the mark. We just need to check to make sure the list isn't empty, and return None if it is.
@crespyl yep, just pushed the fix. Thanks!
Thanks everyone for making me aware of the issue!