-
-
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
new diff signs don't work if line endings are crlf #4989
Comments
Are you using Is there already support for that in gitoxide @Byron? |
That's the work of filters, which in this case simply change the line ending style upon checkout and addition to the object database.
In future, one would be able to obtain the object data and pass it through the configured filters to obtain the buffer that |
Thanks for elaborating @Byron. I will be implementing a simole workaround for CRLF in helix (but not support for.gitattrivutes) for the next release. That can be removed when upstream support lands |
An immediate workaround is |
#4995 will fix most cases |
Summary
the new diff signs feature #3890 colors the entire file using the diff.delta markers on windows where files by default will use crlf line endings.
changing the line endings to lf "fixes" the issue.
Reproduction Steps
I tried this:
hx
I expected this to happen:
Instead, this happened:
Helix log
No response
Platform
windows
Terminal Emulator
windows terminal
Helix Version
helix 22.08.1 (ee010c4)
The text was updated successfully, but these errors were encountered: