# Fix panic in completions menu \(\#3778\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 62aea418de3e81ca5da5b7efb2d85be72a361e3e

Requested commit: 62aea418de3e81ca5da5b7efb2d85be72a361e3e

Commit: 62aea418de3e81ca5da5b7efb2d85be72a361e3e

Tree: 808df2eb0b0d9fc07165593291cc8857426a8ebb

Author: Antonio Scandurra

Committer: GitHub

## Message

```
Fix panic in completions menu (#3778)

We were shifting all the positions while keeping the original string,
which caused problems later when combining highlighted ranges with
matched indices.

Release Notes:

- N/A
```

## Parents

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

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

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