# edit predictions: Handle no keybind for preview \(\#25015\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 478bccadd68b3429e820c41f9b1ecd9e50a77489

Requested commit: 478bccadd68b3429e820c41f9b1ecd9e50a77489

Commit: 478bccadd68b3429e820c41f9b1ecd9e50a77489

Tree: 3ed984516ce600877c9fc3eceb290da4d43524fb

Author: Agus Zubiaga

Committer: GitHub

## Message

```
edit predictions: Handle no keybind for preview (#25015)

If the user removes all modified keybinds in `edit_prediction_conflict`,
the preview bar above the completions menu would disappear. This PR
handles that case slightly better by still showing the 1-line preview
(which they might accept via an unmodified keybind) and hides the `|
Preview ⌥` section since it's impossible to invoke in this case.

Release Notes:

- Handle `edit_prediction_conflict` context without modified keybinds
for `AcceptEditPrediction`
```

## Parents

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

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