Fix unit tests (InputLogicTestsDeadKeys).

Change-Id: I9a3191548aa0a4e674d736bc10845b952fc9a1e8
main
Keisuke Kuroyanagi 2014-10-23 22:09:08 +09:00
parent e65973882d
commit 989699a690
1 changed files with 4 additions and 1 deletions

View File

@ -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);