# languages: Correctly calculate ranges in \`label_for_completion\` \(\#44925\) · gitcafe/zed

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

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

Visibility: public

Requested revision: da0960bab680d8a626e91124edcd3667cabbe23d

Requested commit: da0960bab680d8a626e91124edcd3667cabbe23d

Commit: da0960bab680d8a626e91124edcd3667cabbe23d

Tree: 9bcb0985469f035fe5ba958d776b69db7e20878a

Author: Nereuxofficial

Committer: GitHub

## Message

```
languages: Correctly calculate ranges in `label_for_completion` (#44925)

Closes #44825

Release Notes:

- Fixed a case where an incorrect match could be generated in
label_for_completion

---------

Co-authored-by: Kirill Bulatov <mail4score@gmail.com>
```

## Parents

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

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