aboutsummaryrefslogtreecommitdiffstats
path: root/java/src
diff options
context:
space:
mode:
authorJean Chalard <jchalard@google.com>2012-05-17 04:09:17 -0700
committerAndroid Git Automerger <android-git-automerger@android.com>2012-05-17 04:09:17 -0700
commitb7ee64844c373a80969d3b98a31e56ecbdfc8bc7 (patch)
tree49e106fa1166baf3f71b7a75bf85745b9ff95a7f /java/src
parentb4f0e7a7a0acaa4678c2b507c3b30c7a2579fa6d (diff)
parent6139016b2b51ccfbd31079064804c1a61a6ff87e (diff)
downloadlatinime-b7ee64844c373a80969d3b98a31e56ecbdfc8bc7.tar.gz
latinime-b7ee64844c373a80969d3b98a31e56ecbdfc8bc7.tar.xz
latinime-b7ee64844c373a80969d3b98a31e56ecbdfc8bc7.zip
am 6139016b: Merge "Fix a bug where the previous word would not be read correctly" into jb-dev
* commit '6139016b2b51ccfbd31079064804c1a61a6ff87e': Fix a bug where the previous word would not be read correctly
Diffstat (limited to 'java/src')
-rw-r--r--java/src/com/android/inputmethod/latin/EditingUtils.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/java/src/com/android/inputmethod/latin/EditingUtils.java b/java/src/com/android/inputmethod/latin/EditingUtils.java
index 93106ac27..0f34d50bb 100644
--- a/java/src/com/android/inputmethod/latin/EditingUtils.java
+++ b/java/src/com/android/inputmethod/latin/EditingUtils.java
@@ -29,7 +29,8 @@ public class EditingUtils {
/**
* Number of characters we want to look back in order to identify the previous word
*/
- private static final int LOOKBACK_CHARACTER_NUM = 15;
+ // Provision for a long word pair and a separator
+ private static final int LOOKBACK_CHARACTER_NUM = BinaryDictionary.MAX_WORD_LENGTH * 2 + 1;
private static final int INVALID_CURSOR_POSITION = -1;
private EditingUtils() {