# Fix race condition in editor show_hover \(\#11441\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 0aab6d8bdc8ede886cd8f6c746ca8fc16c05c92f

Requested commit: 0aab6d8bdc8ede886cd8f6c746ca8fc16c05c92f

Commit: 0aab6d8bdc8ede886cd8f6c746ca8fc16c05c92f

Tree: eea5b7e9c6973c15b6f6e273051d24c7f139a9bc

Author: Conrad Irwin

Committer: GitHub

## Message

```
Fix race condition in editor show_hover (#11441)

The DisplayPoint returned from the position map is only valid at the
snapshot in the position map.

Before this change we were erroneously using it to index into the
current version of the buffer.

Release Notes:

- Fixed a panic caused by a race condition in hover.
```

## Parents

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

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