Skip to content

Keep CRLF in bend-lint fix previews - #2307

Draft
oxura wants to merge 1 commit into
bendlang:mainfrom
oxura:fix/lint-preview-crlf-20261124
Draft

oxura wants to merge 1 commit into
bendlang:mainfrom
oxura:fix/lint-preview-crlf-20261124

Conversation

@oxura

@oxura oxura commented Nov 24, 2026

Copy link
Copy Markdown
Contributor

The preview used to strip \r along with \n. That made an ordinary edit to a CRLF file impossible to apply from the diff, and hid CRLF-to-LF changes. The preview now keeps \r in the line body.

Fixes #2306.

I checked both kinds of edits in bend-lint, then applied the generated diff with git apply --unidiff-zero and compared the result byte for byte. The Linux repo gate passed 56/56. The mini gates weren't run.

- Preserve the removed and added lines so the diff applies to CRLF inputs.

Fixes bendlang#2306
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bend-lint previews drop CRLF from changed lines

1 participant