# Edit prediction changes \(\#46169\) · gitcafe/zed

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

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

Visibility: public

Requested revision: efeea7973eb2a6fcf9f60971329361832eef76c1

Requested commit: efeea7973eb2a6fcf9f60971329361832eef76c1

Commit: efeea7973eb2a6fcf9f60971329361832eef76c1

Tree: 0b553653becba292ce1d1e5b85bc62d30084d68c

Author: Oleksiy Syvokon

Committer: GitHub

## Message

```
Edit prediction changes (#46169)

1. Handle diffs with no trailing new lines 
2. ep: Don't assume workdir name in edit history paths
3. Fix `imitate_human_edits()` for pure insertions

Release Notes:

- N/A

---------

Co-authored-by: Agus Zubiaga <agus@zed.dev>
```

## Parents

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

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