# Fix crash when LSP returns multiple nested definition ranges \(\#52701\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 501e72dbe7961cfa598a8f43232427bbe9e5806b

Requested commit: 501e72dbe7961cfa598a8f43232427bbe9e5806b

Commit: 501e72dbe7961cfa598a8f43232427bbe9e5806b

Tree: ccc71270194996f041c499baedf939503119c33f

Author: Max Brunsfeld

Committer: GitHub

## Message

```
Fix crash when LSP returns multiple nested definition ranges (#52701)

This fixes a crash when navigating to multiple definitions in a
singleton buffer (https://github.com/zed-industries/zed/pull/51461).

Release Notes:

- N/A
```

## Parents

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

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