# Fix panic in fuzzy-finder for unicode characters \(\#7080\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 6d4fe8098b8fc17f7cd92fb5c9f8fb3ee0c29da7

Requested commit: 6d4fe8098b8fc17f7cd92fb5c9f8fb3ee0c29da7

Commit: 6d4fe8098b8fc17f7cd92fb5c9f8fb3ee0c29da7

Tree: 31f189ae70e4fab90b2df1b766d3429cbcac5d63

Author: Thorsten Ball

Committer: GitHub

## Message

```
Fix panic in fuzzy-finder for unicode characters (#7080)

This fixes a panic in the fuzzy finder which someone ran into when
typing in a query that contained the lower-case version of a unicode
character that has more chars than its upper-case version.

It also fixes another problem which was that we didn't find a match if
both candidates and query contained upper-case characters whose
lower-case version had more chars.


Release Notes:

- Fixed a panic in fuzzy-finder that could occur when matching with
queries containing upper-case unicode characters whose lower-case
version has more chars.

Co-authored-by: bennetbo <bennetbo@gmx.de>
```

## Parents

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

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