Skip to content

Fix removal highlighting for multiple indented lines#407

Closed
0x2a-42 wants to merge 2 commits intorust-lang:mainfrom
0x2a-42:fix-multiline-removal-highlight
Closed

Fix removal highlighting for multiple indented lines#407
0x2a-42 wants to merge 2 commits intorust-lang:mainfrom
0x2a-42:fix-multiline-removal-highlight

Conversation

@0x2a-42
Copy link
Copy Markdown
Contributor

@0x2a-42 0x2a-42 commented Apr 23, 2026

Fix for #405.

I think this change should cause partially removed lines, where only whitespace characters remain, to be treated like completely removed lines.

All tests pass except for multiple_highlight_duplicated, which does however not show any visual changes. The only difference is that previously some whitespace characters where not highlighted in red.

@Muscraft
Copy link
Copy Markdown
Member

Muscraft commented May 6, 2026

Sorry for the delay in reviewing this PR; my day job has been very busy lately, leaving me little time for open source work.

I want to thank you for taking the time to investigate the issue! It was a big help while I was digging into the issue and your solution! While I was digging into it, I realized that switching to removing all trailing whitespace only addressed a symptom of the underlying issue, which led me to dig deeper and eventually open #413. I am going to close this PR in favor of that one. Again, thank you for all the time and effort you put into #405 and this PR!

@Muscraft Muscraft closed this May 6, 2026
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.

2 participants