-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Panic when trying to open files in $HOME #81
Comments
I think this should be fixed on master by now. Let me know to reopen if necessary. |
The issue remains, tested on commit b873fb9897bb5b24a60cca3d9fa69285446a857f |
What terminal emulator are you using? |
But I get the exact same issue in bash, see below (or am I doing something wrong here?)
|
Terminal as in alacritty, kitty, GNOME terminal. I was able to replicate the bug, it seems to happen on a large folder where there's too many completions. Looking at a quick fix now |
Pushed a fix in 8372395 |
Thanks, I can confirm it is working now |
Thanks for reporting it! |
Present-working-directory of shell is located at
$HOME/Downloads/helix-editor/helix
$ RUST_BACKTRACE=1 hx
:open ../../
(Panic occurs when second slash is typed)thread 'main' panicked at 'index out of bounds: the len is 10070 but the index is 61356', helix-tui/src/buffer.rs:185:14
stack backtrace:
0: rust_begin_unwind
at /rustc/9bc8c42bb2f19e745a63f3445f1ac248fb015e53/library/std/src/panicking.rs:493:5
1: core::panicking::panic_fmt
at /rustc/9bc8c42bb2f19e745a63f3445f1ac248fb015e53/library/core/src/panicking.rs:92:14
2: core::panicking::panic_bounds_check
at /rustc/9bc8c42bb2f19e745a63f3445f1ac248fb015e53/library/core/src/panicking.rs:69:5
3: helix_tui::buffer::Buffer::clear_with
4: <hx::ui::prompt::Prompt as hx::compositor::Component>::render
5: hx::compositor::Compositor::render
6: hx::main::{{closure}}
7: tokio::runtime::enter::Enter::block_on
8: tokio::runtime::Runtime::block_on
9: hx::main
note: Some details are omitted, run with
RUST_BACKTRACE=full
for a verbose backtrace.Ubuntu 20.04.2 LTS
The text was updated successfully, but these errors were encountered: