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
The editor crashes due to a rust_panic caused by an out of bounds access on a Vec whenever move-beginning-of-line (C-a) or move-end-of-line (C-e) is used in a buffer with no newlines.
thread '<main>' panicked at 'index out of bounds: the len is 0 but the index is 0', /Users/rustbuild/src/rust-buildbot/slave/nightly-dist-rustc-mac/build/src/libcollections/vec.rs:1346
The issue seems to be with buffer.rs in get_line_index_backward and get_line_index_forward: nlines is an empty Vec when the buffer contains no newlines. The subsequent access to nlines[offset] on line 275 and 334 causes the panics.
The text was updated successfully, but these errors were encountered:
The editor crashes due to a rust_panic caused by an out of bounds access on a
Vec
whenever move-beginning-of-line (C-a) or move-end-of-line (C-e) is used in a buffer with no newlines.The issue seems to be with buffer.rs in
get_line_index_backward
andget_line_index_forward
:nlines
is an emptyVec
when the buffer contains no newlines. The subsequent access tonlines[offset]
on line 275 and 334 causes the panics.The text was updated successfully, but these errors were encountered: