# file_finder: Fix highlighting panic in open path prompt \(\#41808\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 50504793e6562b239dcd9399bc668445fae55f29

Requested commit: 50504793e6562b239dcd9399bc668445fae55f29

Commit: 50504793e6562b239dcd9399bc668445fae55f29

Tree: dea57a9d42925cacf03a0ac364b4e649097a135c

Author: Lukas Wirth

Committer: GitHub

## Message

```
file_finder: Fix highlighting panic in open path prompt (#41808)

Closes https://github.com/zed-industries/zed/issues/41249

Couldn't quite come up with a test case here but verified it works.

Release Notes:

- Fixed a panic in file finder when deleting characters
```

## Parents

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

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