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
With the attached file when I try multiselecting all text DEBUG, switch to insert mode and hit Enter helix panics in ropey-1.6.1.
Note: md5sum of attached file is ad25ba989d3281257b72181902f3b9dc
Reproduction Steps
I tried this:
hx tempx.txt (the attached file)
%sDEBUG to select all instances of DEBUG in the line
<Enter>i<Enter>
I expected this to happen: split the line into 3
Instead, this happened:
thread 'main' panicked at /home/username/.cargo/registry/src/index.crates.io-6f17d22bba15001f/ropey-1.6.1/src/slice.rs:360:41:
called `Result::unwrap()` on an `Err` value: Char index out of bounds: char index 212, Rope/RopeSlice char length 187
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Helix log
~/.cache/helix/helix.log
Nothing is added to the log file when I do this. (If I 'rm' the log and reproduce the crash the log is created, zero length.)
This may be the same as #10497 but the exact message is different so maybe not. (Upon reading further I see later comments in that issue with the same error message, so these are the same, but as mine has a 100% reproduction I'll leave it to others to decide how to handle this one.)
tempx.txt
Summary
With the attached file when I try multiselecting all text DEBUG, switch to insert mode and hit Enter helix panics in ropey-1.6.1.
Note: md5sum of attached file is ad25ba989d3281257b72181902f3b9dc
Reproduction Steps
I tried this:
hx tempx.txt
(the attached file)<Enter>i<Enter>
I expected this to happen: split the line into 3
Instead, this happened:
Helix log
~/.cache/helix/helix.log
Platform
Debian 12 via WSL2
Terminal Emulator
WSL2
Installation Method
Built with cargo build -r
Helix Version
helix 25.1 (dabfb6c)
The text was updated successfully, but these errors were encountered: