From 6e5ca890504f96844ba2585be4a3b50786213228 Mon Sep 17 00:00:00 2001 From: Jean Chalard Date: Thu, 17 May 2012 20:03:39 +0900 Subject: [PATCH] Fix a bug where the previous word would not be read correctly Bug: 6510002 Change-Id: Id30f67e0ca6f7a6fbbbd07922ae19e416c5ef55e --- java/src/com/android/inputmethod/latin/EditingUtils.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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() {