浏览代码

Update comment

/main
Yuncong Zhang 5 年前
当前提交
2d2a3ce9
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 2
      Runtime/service/text_input.cs

2
Runtime/service/text_input.cs


this.composing = composing ?? TextRange.empty;
if (selection != null && selection.start >= 0 && selection.end >= 0) {
// handle emoji, which takes 2 bytes
// handle surrogate pair emoji, which takes 2 utf16 chars
// if selection cuts in the middle of the emoji, move it to the end
int start = selection.start, end = selection.end;
if (start < text.Length && char.IsLowSurrogate(text[start])) {

正在加载...
取消
保存