Skip to content
Snippets Groups Projects
Commit 6e5ca890 authored by Jean Chalard's avatar Jean Chalard
Browse files

Fix a bug where the previous word would not be read correctly

Bug: 6510002
Change-Id: Id30f67e0ca6f7a6fbbbd07922ae19e416c5ef55e
parent 18ce0731
No related branches found
No related tags found
No related merge requests found
......@@ -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() {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment