mirror of
https://gitlab.futo.org/keyboard/latinime.git
synced 2024-09-28 14:54:30 +01:00
Merge "Fix a bug with surrogate pairs"
This commit is contained in:
commit
e18fdf804a
@ -2558,8 +2558,8 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
mWordComposer.setComposingWord(typedWord, mKeyboardSwitcher.getKeyboard());
|
mWordComposer.setComposingWord(typedWord, mKeyboardSwitcher.getKeyboard());
|
||||||
// TODO: this is in chars but the callee expects code points!
|
mWordComposer.setCursorPositionWithinWord(
|
||||||
mWordComposer.setCursorPositionWithinWord(numberOfCharsInWordBeforeCursor);
|
typedWord.codePointCount(0, numberOfCharsInWordBeforeCursor));
|
||||||
mConnection.setComposingRegion(
|
mConnection.setComposingRegion(
|
||||||
mLastSelectionStart - numberOfCharsInWordBeforeCursor,
|
mLastSelectionStart - numberOfCharsInWordBeforeCursor,
|
||||||
mLastSelectionEnd + range.getNumberOfCharsInWordAfterCursor());
|
mLastSelectionEnd + range.getNumberOfCharsInWordAfterCursor());
|
||||||
|
Loading…
Reference in New Issue
Block a user