editor: Fix `delete line` moving the cursor too far (#40102)

Release Notes:

- N/A *or* Added/Fixed/Improved ...
af0cd30a9cLukas Wirth committed on 10/13/2025, 1:40:45 PM· committed by GitHubparent3ea4b30
2 files changedLine totals unavailable