Diff is unreliable

When applying a code edit, the highlighted parts in the diff view aren’t always accurate when word wrap is enabled. Specifically, it seems like if a part highlighted in red is wrapped, only the text that stays on the original line stays highlighted. This doesn’t seem to affect the green parts. Here’s an example:

OS: Linux (NixOS)
Cursor version: 0.49.6 (can’t test with the latest version as it’s not yet available on NixOS)