Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 989699a6 authored by Keisuke Kuroyanagi's avatar Keisuke Kuroyanagi
Browse files

Fix unit tests (InputLogicTestsDeadKeys).

Change-Id: I9a3191548aa0a4e674d736bc10845b952fc9a1e8
parent e6597388
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -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);