Oleksiy Syvokon
88fc689cfe
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
2026-05-19 17:04:29 +00:00
..
2026-04-29 10:27:47 +00:00
2026-03-06 14:03:45 +00:00
2026-04-01 17:25:32 +00:00
2026-04-01 17:25:32 +00:00
2026-04-29 07:29:15 +00:00
2026-04-24 10:29:51 +00:00
2026-05-18 18:02:51 +00:00
2026-01-14 07:19:13 +00:00
2026-04-17 13:54:43 +02:00
2026-04-01 17:25:32 +00:00
2026-05-05 22:41:13 +00:00
2026-05-16 19:19:36 +00:00
2026-05-07 13:02:11 +00:00
2026-05-14 22:20:34 +00:00
2026-05-14 22:20:34 +00:00
2026-05-12 20:06:01 +00:00
2026-05-14 22:20:34 +00:00
2026-05-06 11:57:36 +00:00
2026-05-06 11:57:36 +00:00
2026-05-13 06:52:46 +00:00
2026-04-29 10:27:47 +00:00
2026-04-11 16:52:27 +00:00
2026-05-14 22:20:34 +00:00
2026-05-16 19:19:36 +00:00
2026-04-08 22:29:16 +03:00
2026-05-12 06:29:16 +00:00
2026-05-19 17:04:29 +00:00
2026-05-19 17:04:29 +00:00
2026-05-18 18:02:51 +00:00
2026-05-07 16:14:47 +00:00
2026-05-07 17:40:28 +00:00
2026-05-18 18:02:51 +00:00
2026-02-21 11:19:56 +00:00
2026-05-06 15:47:59 +00:00
2026-05-05 22:41:13 +00:00
2026-03-25 03:15:51 +00:00
2026-04-01 17:25:32 +00:00
2026-05-14 07:20:51 +00:00
2026-05-13 23:35:10 +00:00
2026-04-01 17:25:32 +00:00
2026-04-01 17:25:32 +00:00
2026-05-05 06:57:05 +00:00
2026-04-16 09:11:22 +03:00
2026-04-16 11:25:08 +01:00
2026-05-14 07:20:51 +00:00
2026-03-18 12:05:57 -07:00
2026-05-06 11:57:36 +00:00
2026-05-04 06:50:38 +00:00
2026-05-05 22:41:13 +00:00
2026-05-05 13:01:02 +00:00
2026-05-14 07:20:51 +00:00
2026-04-01 17:25:32 +00:00
2026-05-07 17:40:28 +00:00
2026-04-01 09:05:03 +00:00
2026-04-01 17:25:32 +00:00
2026-05-14 09:39:44 +00:00
2026-04-01 17:25:32 +00:00
2026-04-01 17:25:32 +00:00