Skip to content

Prevent CutIndent from panicking on short blank lines#70

Merged
Vladyslav-Kuksiuk merged 2 commits into
masterfrom
cut-indent-short-blank-lines
Jun 22, 2026
Merged

Prevent CutIndent from panicking on short blank lines#70
Vladyslav-Kuksiuk merged 2 commits into
masterfrom
cut-indent-short-blank-lines

Conversation

@Vladyslav-Kuksiuk

Copy link
Copy Markdown
Collaborator

Fixes a panic in CutIndent when a whitespace-only line is shorter than the common indentation. The removal is now clamped to the line length.

Resolves this issue.

@Vladyslav-Kuksiuk Vladyslav-Kuksiuk merged commit ff90275 into master Jun 22, 2026
3 checks passed
@Vladyslav-Kuksiuk Vladyslav-Kuksiuk deleted the cut-indent-short-blank-lines branch June 22, 2026 14:35
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.

Fix indent.CutIndent panic on short whitespace-only lines

2 participants