diff options
author | 2012-05-21 11:52:32 -0700 | |
---|---|---|
committer | 2012-05-21 11:52:32 -0700 | |
commit | c95097f8efddaef3185233f931a935c5e85be418 (patch) | |
tree | b577055f9d701f1ba6887311cea8b75697f39160 /java/src | |
parent | 0fff311150571a0b077b9fdb1a8ede4c8b26b206 (diff) | |
parent | b7ee64844c373a80969d3b98a31e56ecbdfc8bc7 (diff) | |
download | latinime-c95097f8efddaef3185233f931a935c5e85be418.tar.gz latinime-c95097f8efddaef3185233f931a935c5e85be418.tar.xz latinime-c95097f8efddaef3185233f931a935c5e85be418.zip |
am b7ee6484: am 6139016b: Merge "Fix a bug where the previous word would not be read correctly" into jb-dev
* commit 'b7ee64844c373a80969d3b98a31e56ecbdfc8bc7':
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.java | 3 |
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 be4cb7787..479b3bf5a 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() { |