Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upFix crashes when editing wide characters spanning 2 `u16`s (UTF-16) #1112
Conversation
|
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!). |
|
Looks good, thank you! |

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