You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When the cursor is on the last line of a file (the very last line, which is always empty and has ~ as the line number) and Alt-J is pressed, Helix panics with the following error:
thread 'main' panicked at 'assertion failed: !ranges.is_empty()', helix-core/src/selection.rs:527:9
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Reproduction Steps
I tried this:
hx
j
Alt-J
I expected this to happen:
No changes or edits.
Instead, this happened:
Helix panics with error
thread 'main' panicked at 'assertion failed: !ranges.is_empty()', helix-core/src/selection.rs:527:9
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Summary
When the cursor is on the last line of a file (the very last line, which is always empty and has
~
as the line number) andAlt-J
is pressed, Helix panics with the following error:Reproduction Steps
I tried this:
hx
j
Alt-J
I expected this to happen:
No changes or edits.
Instead, this happened:
Helix panics with error
Asciinema recording: https://asciinema.org/a/DMVeqQHNtvFWGxBvR7YrK7GMZ
Helix log
No new messages were logged in
~/.cache/helix/helix.log
while performing the above steps.Platform
Linux
Terminal Emulator
kitty 0.26.5
Helix Version
helix 22.12
The text was updated successfully, but these errors were encountered: