# editor: Fix predict edit at cursor action when show_edit_predictions is false \(\#38821\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 7167be588968b578d6738db522878f38bb771205

Requested commit: 7167be588968b578d6738db522878f38bb771205

Commit: 7167be588968b578d6738db522878f38bb771205

Tree: ad9b62f25f01c0adb00b77f6454abd95fe0cae31

Author: Smit Barmase

Committer: GitHub

## Message

```
editor: Fix predict edit at cursor action when show_edit_predictions is false (#38821)

Closes #37601 

Regressed in https://github.com/zed-industries/zed/pull/36469. 

Edit: Original issue https://github.com/zed-industries/zed/issues/25744
is fixed for Zeta in this PR. For Copilot, it will be covered in a
follow-up. In the case of Copilot, even after discarding, we still get a
prediction on suggest, which is a bug.

Release Notes:

- Fixed issue where predict edit at cursor didn't work when
`show_edit_predictions` is `false`.
```

## Parents

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

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