aboutsummaryrefslogtreecommitdiffstats
path: root/native/src/correction.cpp
diff options
context:
space:
mode:
authorJean Chalard <jchalard@google.com>2012-01-16 02:12:19 -0800
committerAndroid Git Automerger <android-git-automerger@android.com>2012-01-16 02:12:19 -0800
commit93e154715cf6f25fa09d4148b4297d415ce30e12 (patch)
treefb646f0e6582b4836088ca21308d4621e61a1585 /native/src/correction.cpp
parent082d3f6255693657130f6fe85a7657d532f6852c (diff)
parent82ddd168893892cfe4366e1e2fa9e9bfeb5478a5 (diff)
downloadlatinime-93e154715cf6f25fa09d4148b4297d415ce30e12.tar.gz
latinime-93e154715cf6f25fa09d4148b4297d415ce30e12.tar.xz
latinime-93e154715cf6f25fa09d4148b4297d415ce30e12.zip
am 82ddd168: Stop avoiding adding what the user typed to candidates
* commit '82ddd168893892cfe4366e1e2fa9e9bfeb5478a5': Stop avoiding adding what the user typed to candidates
Diffstat (limited to 'native/src/correction.cpp')
-rw-r--r--native/src/correction.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/native/src/correction.cpp b/native/src/correction.cpp
index 43ab3f59c..75831b69d 100644
--- a/native/src/correction.cpp
+++ b/native/src/correction.cpp
@@ -168,8 +168,8 @@ int Correction::getFinalFreq(const int freq, unsigned short **word, int *wordLen
const int outputIndex = mTerminalOutputIndex;
const int inputIndex = mTerminalInputIndex;
*wordLength = outputIndex + 1;
- if (mProximityInfo->sameAsTyped(mWord, outputIndex + 1) || outputIndex < MIN_SUGGEST_DEPTH) {
- return -1;
+ if (outputIndex < MIN_SUGGEST_DEPTH) {
+ return NOT_A_FREQUENCY;
}
*word = mWord;