File tree Expand file tree Collapse file tree 2 files changed +10
-0
lines changed
java/src/org/futo/inputmethod/latin Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -214,6 +214,9 @@ public static SuggestedWords obtainNonBatchedInputSuggestedWords(
214
214
// If we don't have suggestion results, we can't evaluate the first suggestion
215
215
// for auto-correction
216
216
|| suggestionResults .isEmpty ()
217
+ // If the word has dashes, we never auto-correct because it had to have been
218
+ // typed with a lot of care
219
+ || wordComposer .hasDashes ()
217
220
// If the word has digits, we never auto-correct because it's likely the word
218
221
// was type with a lot of care, unless number row is active
219
222
|| (wordComposer .hasDigits () && !numberRowActive )
Original file line number Diff line number Diff line change @@ -371,6 +371,13 @@ public boolean hasDigits() {
371
371
return mDigitsCount > 0 ;
372
372
}
373
373
374
+ /**
375
+ * Returns true if we have dashes in the composing word.
376
+ */
377
+ public boolean hasDashes () {
378
+ return getTypedWord ().indexOf ('-' ) != -1 ;
379
+ }
380
+
374
381
/**
375
382
* Returns true if the composing word is entirely digits.
376
383
*/
You can’t perform that action at this time.
0 commit comments