Merge "Fix a bug with surrogate pairs"
This commit is contained in:
commit
e18fdf804a
1 changed files with 2 additions and 2 deletions
|
@ -2558,8 +2558,8 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen
|
|||
}
|
||||
}
|
||||
mWordComposer.setComposingWord(typedWord, mKeyboardSwitcher.getKeyboard());
|
||||
// TODO: this is in chars but the callee expects code points!
|
||||
mWordComposer.setCursorPositionWithinWord(numberOfCharsInWordBeforeCursor);
|
||||
mWordComposer.setCursorPositionWithinWord(
|
||||
typedWord.codePointCount(0, numberOfCharsInWordBeforeCursor));
|
||||
mConnection.setComposingRegion(
|
||||
mLastSelectionStart - numberOfCharsInWordBeforeCursor,
|
||||
mLastSelectionEnd + range.getNumberOfCharsInWordAfterCursor());
|
||||
|
|
Loading…
Reference in a new issue