# diagnostics: Keep diagnostic excerpt ranges properly ordered \(\#42298\) · gitcafe/zed

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

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

Visibility: public

Requested revision: b7d4d1791a873af87340ba204ce58bfc3472986d

Requested commit: b7d4d1791a873af87340ba204ce58bfc3472986d

Commit: b7d4d1791a873af87340ba204ce58bfc3472986d

Tree: 88f766a860d00a5b43cb47e58da3b7366feaa688

Author: Lukas Wirth

Committer: GitHub

## Message

```
diagnostics: Keep diagnostic excerpt ranges properly ordered (#42298)

Fixes ZED-2CQ

We were doing the binary search by buffer points, but due to await
points within this function we could end up mixing points of differing
buffer versions.

Release Notes:

- N/A *or* Added/Fixed/Improved ...
```

## Parents

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

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