Fix crash in manipulate_text on multibuffers (#57165)

In `Editor::manipulate_text`, we computed selection boundaries for the
updated text assuming the requested edit would be applied exactly. This
is not always true. As a result, we could produce an invalid selection
range and panic.

This change replaces manual selection boundary computation with anchors.
It also skips edits when `new_text == old_text`.

Closes FR-10.

Release Notes:

- N/A
a949cabb32Oleksiy Syvokon committed on 5/19/2026, 5:04:29 PM· committed by GitHubparentae47ec9
2 files changedLine totals unavailable