gpui: Avoid redundant SharedString allocations in ShapedLine::split_at (#54583)

Build split text directly from Arc<str> slices instead of allocating
intermediate Strings. Reuse the original SharedString for full-line
splits, return a static empty string for empty sides, and add a
regression test covering boundary splits.

Release Notes:

- N/A

---------

Signed-off-by: Xiaobo Liu <cppcoffee@gmail.com>
43d6ab5386Xiaobo Liu committed on 4/23/2026, 10:25:24 AM· committed by GitHubparent72daa7d
1 file changedLine totals unavailable