# edit prediction: Don't show and discard completion if toggled off in the buffer \(\#24927\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 191a1d7b10655ac4b4d0ad2948a356845725a69a

Requested commit: 191a1d7b10655ac4b4d0ad2948a356845725a69a

Commit: 191a1d7b10655ac4b4d0ad2948a356845725a69a

Tree: b21ac2a66f025d8a597bd7cbc8ef8f9bbd5968e9

Author: itsaphel

Committer: GitHub

## Message

```
edit prediction: Don't show and discard completion if toggled off in the buffer (#24927)

Discards an inline completion when it's toggled to off (using, say, a
keyboard shortcut). This matches the behaviour in VS Code and JetBrains,
and I think is a bit more intuitive.

(https://github.com/zed-industries/zed/discussions/24895)

Release Notes:

- N/A
```

## Parents

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

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