The surrounding_text event was taken and thrown away. It carries the text around the cursor with a byte offset into it, and belongs to the activation like the content type, so it is pending until done and starts empty at every activate. delete_surrounding_text counts bytes where the engine counts runes, and the frontend holds the text those runes are in, so it measures them itself. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
20 KiB
20 KiB