Fix editor crash when pasting multi-byte characters like √.
Tim Falken authored 4 months ago
egui CCursor indexes characters; convert to UTF-8 byte offsets before slicing the body.
Co-authored-by: Cursor <cursoragent@cursor.com>