Skip to content

Conversation

@huacnlee
Copy link
Contributor

@huacnlee huacnlee commented Aug 6, 2025

Close #35715

Release Notes:

  • Fixed to wrap long URLs in editor.
image

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.

@cla-bot cla-bot bot added the cla-signed The user has signed the Contributor License Agreement label Aug 6, 2025
@huacnlee
Copy link
Contributor Author

huacnlee commented Aug 6, 2025

image image

After change in Zed:

Not all same, but wrap is ok, difference that the /, &, ? going to the start of line.

image image
@huacnlee huacnlee changed the title gpui: Fix text wrap for slash in URL Aug 6, 2025
@mikayla-maki
Copy link
Member

Thank you!

@mikayla-maki mikayla-maki enabled auto-merge (squash) October 16, 2025 00:11
auto-merge was automatically disabled October 16, 2025 01:44

Head branch was pushed to by a user without write access

@huacnlee
Copy link
Contributor Author

The test has failed, caused by 605af7d changed is_word_char rules.

I have reverted to last version.

@mikayla-maki mikayla-maki merged commit 6c3a7f6 into zed-industries:main Oct 17, 2025
22 checks passed
P1n3appl3 pushed a commit to P1n3appl3/zed that referenced this pull request Oct 18, 2025
Close zed-industries#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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla-signed The user has signed the Contributor License Agreement

2 participants