Fix unit tests (InputLogicTestsDeadKeys).
Change-Id: I9a3191548aa0a4e674d736bc10845b952fc9a1e8main
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