editor: Fix panic in wrap_map (#43650)

Fixes ZED-3P9

We only clamped the end which for a completely wrong input could cause
us to construct a reversed range which will end up underflowing later
on.

Release Notes:

- N/A *or* Added/Fixed/Improved ...
8e04706c4dLukas Wirth committed on 11/27/2025, 9:29:27 AM· committed by GitHubparent99d7b2f
1 file changedLine totals unavailable