LMInstantiator // Let phrase replacement behave like upstream.

This commit is contained in:
ShikiSuen 2022-05-04 16:50:06 +08:00
parent fe3659011f
commit 4bb93b5932
1 changed files with 1 additions and 1 deletions

View File

@ -311,7 +311,7 @@ extension vChewing {
if isPhraseReplacementEnabled { if isPhraseReplacementEnabled {
let replacement = lmReplacements.valuesFor(key: pair.value) let replacement = lmReplacements.valuesFor(key: pair.value)
if !replacement.isEmpty, pair.value.count == replacement.count { if !replacement.isEmpty {
IME.prtDebugIntel("\(pair.value) -> \(replacement)") IME.prtDebugIntel("\(pair.value) -> \(replacement)")
pair.value = replacement pair.value = replacement
} }