editor: Prevent non‑boundary highlight indices in UTF‑8 (#38510)

Closes #38359

Release Notes:

- Use byte offsets for highlights; fix UTF‑8 crash
271771c742Miao committed on 9/22/2025, 9:06:54 AM· committed by GitHubparent891a06c
4 files changedLine totals unavailable