# gpui: Fix text wrapping for URLs \(\#35724\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 6c3a7f6ddb9746ed36c8b1397b5c63a6dd2f8a92

Requested commit: 6c3a7f6ddb9746ed36c8b1397b5c63a6dd2f8a92

Commit: 6c3a7f6ddb9746ed36c8b1397b5c63a6dd2f8a92

Tree: f51c0beda92a38152c3dac2be8b59f720bff1471

Author: Jason Lee

Committer: GitHub

## Message

```
gpui: Fix text wrapping for URLs (#35724)

Close #35715

Release Notes:

- Fixed to wrap long URLs in editor.

<img width="836" height="740" alt="image"
src="https://github.com/user-attachments/assets/635ce792-5f19-4c76-b131-0d270d09b103"
/>

I remember when I was working on CJK line wrapping support in the early
days, I considered making `\` a line wrapping character, but for some
reason it was on the list of characters that were not allowed to wrap.

In reference to VS Code, it looks like `&`, `/`, `?` should wrap, so I
removed all of them.

---------

Co-authored-by: Mikayla Maki <mikayla@zed.dev>
```

## Parents

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

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