mirror of
https://gitlab.futo.org/keyboard/latinime.git
synced 2024-09-28 14:54:30 +01:00
Fix incorrect matching of last character to unexpected names in contact
dictionary. Example, "ho9" would match "Shoemaker", if "Shoemaker" existed in your contacts. This was due to premature switch to completions mode when trying to insert a missing letter. This syncs up the Java version to what the native one was doing.
This commit is contained in:
parent
6aaafeed96
commit
787a654fd7
@ -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())) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user