# editor: Ignore whitespaces in selection highlight \(\#25236\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 48541fb05a253eb5c939bed758a95d79a1219678

Requested commit: 48541fb05a253eb5c939bed758a95d79a1219678

Commit: 48541fb05a253eb5c939bed758a95d79a1219678

Tree: 08e3d9494be7c4cd0c785887ca5cd897c3109e8e

Author: smit

Committer: GitHub

## Message

```
editor: Ignore whitespaces in selection highlight (#25236)

This PR prevents whitespace selections from being highlighted.

Before:
<img
src="https://github.com/user-attachments/assets/79812ae5-6709-4e93-b203-b8f1d5ffbf7b"
alt="image" width="400px" />

After:
<img
src="https://github.com/user-attachments/assets/77540ef9-65df-476e-9cca-b2cef14f5f3a"
alt="image" width="400px" />


Release Notes:

- Fixed an issue where whitespace selections were incorrectly
highlighted.
```

## Parents

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

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