# editor: Fix highlight selection panic \(\#25141\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 043c4ed29676fed67ab4acf2e4ee70cd88a15a0a

Requested commit: 043c4ed29676fed67ab4acf2e4ee70cd88a15a0a

Commit: 043c4ed29676fed67ab4acf2e4ee70cd88a15a0a

Tree: 41a984269b6e0567afe912731517b6c8b109e40c

Author: smit

Committer: GitHub

## Message

```
editor: Fix highlight selection panic (#25141)

Use the latest selection state for highlighting instead of the state
before debounce.

Release Notes:

- N/A
```

## Parents

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

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