Skip to content

bend-lint previews drop CRLF from changed lines #2306

Backlog

Description

@oxura

What you did

Rendered a bend-lint fix that replaces a value on a CRLF line (without touching the line ending). Then I saved the unified diff and ran git apply --check --unidiff-zero -p0 against the same file.

What happened

The diff contains LF on both the - and + lines, even though the corresponding source and replacement lines both have CRLF. Git cannot match the removed line (patch does not apply). The same omission makes an LF-only conversion look like an identical removed and added line.

bend --version

2.0.40, main at 966bbb74.

uname -sm

Linux x86_64.

clang --version (the first line)

clang version 22.1.8. Bun 1.4.4 ran bend-lint; the native compiler wasn't involved.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions