Cursor can go beyond the last character of the line
(I remember seeing an issue about this, but could not find it, so feel free to close if there's actually an issue.)
Hi.
Like Helix, the cursor can go beyond the last character of the line when using the command move_char_right.
Since this is not possible in vim, I'd like to match the behavior in evil-helix, i.e. make it impossible to go beyond the last character of the line.
Maybe it is necessary to keep it for now since we're missing some vim bindings: I don't think it is an issue, but maybe I'm missing something.
Thanks.
Whenever I try to unindent near the last line of a file, the selection moves outside the text's scope, causing Helix to crash. This is extremely frustrating. Could this issue be addressed?
@shibahaczix thank you for mentioning that! That sounds like a nasty bug which I would like to fix ASAP.
That said, I couldn't reproduce it so far; do you have any additional info that could help? More specifically: what was the file looking like, where was your cursor, and what commands did you enter?
Feel free to open a separate issue for this, because it sounds like a different issue than the one mentioned above.
I selected the last line of a file and pressed > (or shift + .)
that causes helix to crash and the error message is as follows:
thread 'main' panicked at helix-core/src/transaction.rs:499:9:
Positions [(5, BeforeSticky)] are out of range for changeset len 4!
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace