Fix being unable to put a cursor after trailing deletion hunks (#26621)

Closes #26541

Release Notes:

- Fixed a bug that prevented putting the cursor after a deletion hunk at
the end of a file, in the absence of trailing newlines

---------

Co-authored-by: Max <max@zed.dev>
2eb4d6b7ebCole Miller committed on 3/13/2025, 4:56:54 PM· committed by GitHubparent25f407b
2 files changedLine totals unavailable