Skip to content

Conversation

@disconcision
Copy link
Member

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.

Closes #2090

github-actions bot and others added 3 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.

@codecov
Copy link

codecov bot commented Jan 29, 2026

Codecov Report

❌ Patch coverage is 0% with 2 lines in your changes missing coverage. Please review.
✅ Project coverage is 50.49%. Comparing base (aeea780) to head (4eeb2a8).
⚠️ Report is 7 commits behind head on dev.

Files with missing lines Patch % Lines
src/util/StringUtil.re 0.00% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##              dev    #2093      +/-   ##
==========================================
+ Coverage   50.48%   50.49%   +0.01%     
==========================================
  Files         229      229              
  Lines       25187    25189       +2     
==========================================
+ Hits        12715    12720       +5     
+ Misses      12472    12469       -3     
Files with missing lines Coverage Δ
src/util/StringUtil.re 54.21% <0.00%> (-1.34%) ⬇️

... and 12 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@disconcision disconcision changed the title Claude issue 2090 20260129 2026 Fix issue when pasting code with linebreaks in windows Feb 3, 2026
Copy link
Contributor

@Negabinary Negabinary left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works for me

@Negabinary Negabinary added this pull request to the merge queue Feb 4, 2026
Merged via the queue into dev with commit 32d1743 Feb 4, 2026
6 checks passed
@Negabinary Negabinary deleted the claude-issue-2090-20260129-2026 branch February 4, 2026 15:51
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

2 participants