aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/com/android/inputmethod/latin/ExpandableDictionary.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/com/android/inputmethod/latin/ExpandableDictionary.java b/src/com/android/inputmethod/latin/ExpandableDictionary.java
index 648f577ca..006593700 100644
--- a/src/com/android/inputmethod/latin/ExpandableDictionary.java
+++ b/src/com/android/inputmethod/latin/ExpandableDictionary.java
@@ -248,7 +248,7 @@ public class ExpandableDictionary extends Dictionary {
if (currentChar == lowerC || currentChar == c) {
word[depth] = c;
- if (codeSize == depth + 1) {
+ if (codeSize == inputIndex + 1) {
if (terminal) {
if (INCLUDE_TYPED_WORD_IF_VALID
|| !same(word, depth + 1, codes.getTypedWord())) {