ep: Fix applying patch to text without a trailing newline (#46471)

Release Notes:

- N/A

Co-authored-by: Agus Zubiaga <agus@zed.dev>
cbb6e2f563Oleksiy Syvokon committed on 1/12/2026, 2:59:25 PM· committed by GitHubparent37b0560
2 files changedLine totals unavailable