editor: Fix invalid anchors in `hover_links::surrounding_filename` (#38766)

Fixes ZED-1K3

Release Notes:

- N/A *or* Added/Fixed/Improved ...
c53e5ba397Lukas Wirth committed on 9/24/2025, 8:30:11 AM· committed by GitHubparentd5a99d0
1 file changedLine totals unavailable