-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Command suggestions sometimes panic in self.is_char_boundary(n)
#1888
Comments
self.is_char_boundary(n)
self.is_char_boundary(n)
Duplicate of #1246, but it's still not reproducible in my machine :/ |
Can you get us a full backtrace by setting the env RUST_BACKTRACE=1? |
I tried that, but there was no additional output. |
Did you export the env var? What exactly did you run |
Feels like the range returned by completions isn't aligned to a char which then causes replace_range to panic helix/helix-term/src/ui/prompt.rs Line 311 in d37369c
|
Could also be because the completion isn't recalculated when you press tab, but the completions are all calculated from what the original input was |
Based on the trace in the other issue that seems to be it: #2004 (comment) |
I tried to reproduce this by the various methods described. No matter how long I spam any keys or try I can't reproduce this. Is it possible this has been fixed? There were quite a few reports around April last year but nothing since |
yeah you are correct @pascalkuthe this looks like it was fixed by #3193 |
Summary
Using tab to complete/cycle through completion options sometimes crashes with the following message:
Reproduction Steps
I tried this:
hx
:theme
Space
to selecttheme
I expected this to happen:
The selection moves through the theme list
Instead, this happened:
Helix log
~/.cache/helix/helix.log
is emptyPlatform
macOS
Terminal Emulator
alacritty 0.10.1 (2844606)
Helix Version
helix 22.03 (d4e45fd)
The text was updated successfully, but these errors were encountered: