# theme_selector: Don't select last theme when fuzzy searching \(\#28278\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 1c4ba07b205bc9cc4f61c2d9a4d85e24ad9925d4

Requested commit: 1c4ba07b205bc9cc4f61c2d9a4d85e24ad9925d4

Commit: 1c4ba07b205bc9cc4f61c2d9a4d85e24ad9925d4

Tree: fe7b3adc23774b5ca6b314f22ae8862a237c6254

Author: Hendrik Sollich

Committer: GitHub

## Message

```
theme_selector: Don't select last theme when fuzzy searching (#28278)

The theme selector should select the last match to when opening to keep
the current theme active but it should select the first when searching
to pick the best match.

fixes #28081


https://github.com/user-attachments/assets/b46b9742-4715-4c7a-8f17-2c19a8668333

Release Notes:

- Fixed selecting the correct theme when searching

---------

Co-authored-by: Peter Tripp <peter@zed.dev>
```

## Parents

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

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