Skip to content

Conversation

@disconcision
Copy link
Member

Summary

Normalize \r\n (Windows) and \r (old Mac) line breaks to \n in the trim_leading function to prevent parsing errors that appear as red error markers when pasting multiline code.

Changes

  • Modified src/util/StringUtil.re to normalize line breaks before trimming

Fixes #2090

Generated with Claude Code

github-actions bot and others added 2 commits January 29, 2026 20:27
Normalize \r\n (Windows) and \r (old Mac) line breaks to \n in the
trim_leading function to prevent parsing errors that appear as red
error markers when pasting multiline code.

Fixes #2090

Co-authored-by: andrew blinn <[email protected]>
@claude
Copy link

claude bot commented Jan 29, 2026

Code review

No issues found. Checked for bugs and CLAUDE.md compliance.

1 similar comment
@claude
Copy link

claude bot commented Jan 29, 2026

Code review

No issues found. Checked for bugs and CLAUDE.md compliance.

@disconcision disconcision deleted the claude/issue-2090-20260129-2026 branch January 29, 2026 20:46
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.

Pasting multiline code has weird behaviour

1 participant