# Fix issue in \`StreamingEditFileTool\` with incomplete last line \(\#51747\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/4e83c75681196ac661cb7e19f438a5561599ff23)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: 4e83c75681196ac661cb7e19f438a5561599ff23

Requested commit: 4e83c75681196ac661cb7e19f438a5561599ff23

Commit: 4e83c75681196ac661cb7e19f438a5561599ff23

Tree: 71bf6813fc7eb4f106cf27347ee64152aad2f66a

Author: Bennet Bo Fenner

Committer: GitHub

## Message

```
Fix issue in `StreamingEditFileTool` with incomplete last line (#51747)

<img width="927" height="368" alt="image"
src="https://github.com/user-attachments/assets/05de37f7-3034-4060-96b6-49c426170f39"
/>

Before you mark this PR as ready for review, make sure that you have:
- [x] Added a solid test coverage and/or screenshots from doing manual
testing
- [x] Done a self-review taking into account security and performance
aspects
- [x] Aligned any UI changes with the [UI
checklist](https://github.com/zed-industries/zed/blob/main/CONTRIBUTING.md#uiux-checklist)

Release Notes:

- N/A

---------

Co-authored-by: Antonio Scandurra <me@as-cii.com>
```

## Parents

- [c3d1f7981b9d2fe5cb3d4c2710edc99af5592dcf](https://git.cafe/gitcafe/zed/commit/c3d1f7981b9d2fe5cb3d4c2710edc99af5592dcf?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/4e83c75681196ac661cb7e19f438a5561599ff23?format=markdown)
