# Fix a completions panic when no fuzzy matches \+ inline completion \(\#23019\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 61115bd04792d87a540558753cd01a6368baba2a

Requested commit: 61115bd04792d87a540558753cd01a6368baba2a

Commit: 61115bd04792d87a540558753cd01a6368baba2a

Tree: ddf539ec49ed33d9c6e280e272e3087bb242735c

Author: Michael Sloan

Committer: GitHub

## Message

```
Fix a completions panic when no fuzzy matches + inline completion (#23019)

My mistake in #22977, in the case where the inline completion was not
selected it set the index to 1 assuming there would be following match
entries.
```

## Parents

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

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