# Fix Locator::from_index · gitcafe/zed

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

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

Visibility: public

Requested revision: f9f75e98f8dddc4bdf654e8996d6b4c71b546e4b

Requested commit: f9f75e98f8dddc4bdf654e8996d6b4c71b546e4b

Commit: f9f75e98f8dddc4bdf654e8996d6b4c71b546e4b

Tree: bb5a56b19dd98ae9843c576293ef64e7a27772f0

Author: Max Brunsfeld

Committer: Max Brunsfeld

## Message

```
Fix Locator::from_index

Enhance language::tests::test_random_collaborators so that it checks buffer invariants.

Co-Authored-By: Nathan Sobo <nathan@zed.dev>

```

## Parents

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

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