-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix line wrap for CJK characters #11296
Conversation
b95e7c3
to
9113c99
Compare
The second commit is updated to match the exist test cases. https://github.com/zed-industries/zed/blob/v0.134.1-pre/crates/editor/src/editor_tests.rs#L1272 But in this way, the URL cannot be forcibly truncated, as shown below. Compared with my previous video, the new changes have a little issue compared to the previous video. ![]() However, at least most of the previous details will be retained (because I did not modify the previous test cases). |
49720a1
to
311c858
Compare
good job! |
Thanks for this PR! Really appreciate the attention to detail on other languages and I'd like to get it merged. |
Added more support: Latin-1 Supplement, Extended-A,B,C, Cyrillic Ref: |
Given the increase in ergonomics, and the coverage for the languages we're capable of supporting, I think it's good to try this one out. Thank you! |
Ahh, seems there's an issue with the macOS tests :) |
Test now passed |
Final test 2024-05-18.11.33.58.mov |
Hi @mikayla-maki, how about this PR |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We looked at this PR again and immediately ran into a bunch of crashes from the rope code splitting characters. This needs to be fixed before we can merge this!
Yes, I know that rope crash: I have logged this issue: #12011 By my test: That crash has no relative with this PR changes, it has always existed. I never encountered it before because I rarely write Chinese in Zed, and I only discovered it when implementing this CJK wrap support. |
I am going to test again. |
Hi @mikayla-maki I have make a record for show this crash, it was existed in main branch. This version by tag: v0.144.0-pre CleanShot.2024-07-11.at.00.56.04.mp4Here is a test text:
And it's interest, that looks like not happen in the release version. |
And I build a release version of this branch to confirm my guess. Yes, It is no crash now: CleanShot.2024-07-11.at.01.24.00.mp4 |
I have a fix for the panic and will merge that in a few |
Release Notes:
Demo
input1.mov
Fix issues: #4623 #11202
Render case