-
Notifications
You must be signed in to change notification settings - Fork 253
Fix crashes when editing wide characters spanning 2 u16s (UTF-16)
#1112
Conversation
u16s (UTF-16)
Xanewok
left a comment
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.
Just noticed one caveat, will need to fix that before it lands.
|
With rust-lang/rfcs#2457 merged we additionally now have to be careful around Unicode identifiers and their, currently wrong, (ノ ゜Д゜)ノ ︵ ┻━┻ UTF-16 is a can of worms. While this PR fixes an unrecoverable crash and possible text buffer corruption, the remaining UTF-16 Range thing is mostly displaying diagnostics, so I'd treat it with a lower priority (but still something that we need to fix!). |
84992c2 to
b672685
Compare
nrc
left a comment
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.
Looks good, thank you!

Blocked on rust-dev-tools/rls-vfs#24.Fixes #1104.
r? @nrc