[BUG] Incorrect diff visualization in notes

Posted under Bugs & Features

I noticed that for some of my edits in notes, the changes made are displayed incorrectly.

Action taken:
I replaced the entire text "Snow Maiden" with "Snegurochka".

Actual result:
SnowSnegurochka Maiden

Expected result:
Snow Maiden Snegurochka

1