# Fix panic in completions menu · gitcafe/zed

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

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

Visibility: public

Requested revision: a551647ec1ca098caef33721c06a79b7035ded56

Requested commit: a551647ec1ca098caef33721c06a79b7035ded56

Commit: a551647ec1ca098caef33721c06a79b7035ded56

Tree: 9e102094db7d9c2e87639592ba7675a61df5963e

Author: Antonio Scandurra

Committer: Antonio Scandurra

## Message

```
Fix panic in completions menu

We were shifting all the positions while keeping the original
string, which caused problems later when combining highlighted
ranges with matched indices.

```

## Parents

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

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