# file_finder: Fix open path prompt creating wrong highlight indices \(\#40488\) · gitcafe/zed

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

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

Visibility: public

Requested revision: b7112320bb76fdce19808002c0c2360e7d01c046

Requested commit: b7112320bb76fdce19808002c0c2360e7d01c046

Commit: b7112320bb76fdce19808002c0c2360e7d01c046

Tree: dc68e69feea63b19ef4f52214a2095d1e2fba03b

Author: Lukas Wirth

Committer: GitHub

## Message

```
file_finder: Fix open path prompt creating wrong highlight indices (#40488)

Fixes ZED-28R

Release Notes:

- Fixed open path prompt panicking on certain inputs
```

## Parents

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

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