mirror of
https://gitlab.futo.org/keyboard/latinime.git
synced 2024-09-28 14:54:30 +01:00
Fix unit tests (InputLogicTestsDeadKeys).
Change-Id: I9a3191548aa0a4e674d736bc10845b952fc9a1e8
This commit is contained in:
parent
e65973882d
commit
989699a690
@ -218,7 +218,10 @@ public class DeadKeyCombiner implements Combiner {
|
||||
@Nonnull
|
||||
private static Event createEventChainFromSequence(final @Nonnull CharSequence text,
|
||||
@Nonnull final Event originalEvent) {
|
||||
Event lastEvent = originalEvent;
|
||||
if (text.length() <= 0) {
|
||||
return originalEvent;
|
||||
}
|
||||
Event lastEvent = null;
|
||||
int codePoint = 0;
|
||||
for (int i = text.length(); i > 0; i -= Character.charCount(codePoint)) {
|
||||
codePoint = Character.codePointBefore(text, i);
|
||||
|
Loading…
Reference in New Issue
Block a user