-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Markdown file indent-style detection and crash #9082
Comments
I think you mean |
Oh, yeah... sorry about that... :) Also, maybe a different issue but I wonder if the indent auto detection is working as expected. I get 10 space indents set in that file. |
Indeed, I just found that out when you posted your answer xD |
there are two things going on here which I was kind of aware of before:
|
@pascalkuthe so may I ask what you suggest for a PR for this? Should the PR just remove the unreachable branch? |
yeah mostly just remove the unreachable branch altough fixing the ident heuristic would be a nice bonus |
aye aye captain |
Summary
The tab width auto detection seems to bug on some markdown files and cause a crash when trying to probe the indent-style setting.
Reproduction Steps
I tried this:
test.md
with the following content:hx test.md
:indent-style
I expected this to happen:
Helix to report the current indent-style setting.
Instead, this happened:
Helix crashes with
internal error: entered unreachable code note: run with
RUST_BACKTRACE=1environment variable to display a backtrace
Platform
Windows
Terminal Emulator
Windows Terminal Version: 1.17.11461.0
Installation Method
scoop
Helix Version
helix 23.10 (f6021dd)
The text was updated successfully, but these errors were encountered: