# Fix single line edit prediction detection \(\#23456\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 55721c65d44f9ba413a464de7c1a7d7456d5a6b5

Requested commit: 55721c65d44f9ba413a464de7c1a7d7456d5a6b5

Commit: 55721c65d44f9ba413a464de7c1a7d7456d5a6b5

Tree: e2e3e1c865123cc1c57403b10a243b66658c6924

Author: Agus Zubiaga

Committer: GitHub

## Message

```
Fix single line edit prediction detection (#23456)

#23411 introduced an "Accept" callout for single line edits, but the
logic to detect them was incorrect causing it to trigger for multiline
insertions, this PR fixes that.

Release Notes:

- N/A
```

## Parents

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

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