From 1c9c94b83d1e076e07829cb4a34025b50fd83d0d Mon Sep 17 00:00:00 2001 From: Aleksandras Kostarevas Date: Fri, 27 Sep 2024 18:50:35 +0300 Subject: [PATCH] Reduce max typed word length --- .../org/futo/inputmethod/latin/xlm/LanguageModelFacilitator.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java/src/org/futo/inputmethod/latin/xlm/LanguageModelFacilitator.kt b/java/src/org/futo/inputmethod/latin/xlm/LanguageModelFacilitator.kt index 1462a3b95..1d7e31d82 100644 --- a/java/src/org/futo/inputmethod/latin/xlm/LanguageModelFacilitator.kt +++ b/java/src/org/futo/inputmethod/latin/xlm/LanguageModelFacilitator.kt @@ -240,7 +240,7 @@ public class LanguageModelFacilitator( try { inputLogic.mWordComposer.setAutoCorrection(null) - if(values.composedData.mTypedWord.length > BinaryDictionary.DICTIONARY_MAX_WORD_LENGTH) { + if(values.composedData.mTypedWord.length > BinaryDictionary.DICTIONARY_MAX_WORD_LENGTH-1) { inputLogic.mSuggestionStripViewAccessor.setNeutralSuggestionStrip() return }