Skip to content

fix(editor): preserve indentation on soft-wrapped lines - #2880

Merged
bajrangCoder merged 2 commits into
mainfrom
indented-soft-wrap
Sep 11, 2026
Merged

bajrangCoder merged 2 commits into
mainfrom
indented-soft-wrap

Conversation

@bajrangCoder

Copy link
Copy Markdown
Member

Fixes: #2504

@greptile-apps

greptile-apps Bot commented Sep 11, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerConfidence Score: 5/5

The PR appears safe to merge, with no outstanding findings.

Summary

  • Introduces a view plugin that measures available width and decorates visible indented lines.
  • Replaces standard line wrapping with the new extension when text wrapping is enabled.
  • Adds unit coverage for spaces, tabs, mixed indentation, tab alignment, and indentation caps.

Reviews (3) · Last reviewed commit: "fix"

Comment thread src/cm/indentedLineWrapping.ts
@bajrangCoder

This comment was marked as outdated.

1 similar comment
@bajrangCoder

This comment was marked as outdated.

@bajrangCoder
bajrangCoder added this pull request to the merge queue Sep 11, 2026
Merged via the queue into main with commit c63511b Sep 11, 2026
11 checks passed
@github-project-automation github-project-automation Bot moved this from Backlog to Done in The Code Board - Acode Sep 11, 2026
@bajrangCoder
bajrangCoder deleted the indented-soft-wrap branch September 11, 2026 15:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

Wrapped lines no longer preserve indentation (Regression)

1 participant