aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/latin
diff options
context:
space:
mode:
authorJean Chalard <jchalard@google.com>2015-01-16 03:22:16 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2015-01-16 03:22:18 +0000
commit9fe700ec4fceba1e061733795bc89ca9d0620525 (patch)
treee752f8c075e8b3287209b0548be79a854e760b82 /java/src/com/android/inputmethod/latin
parent4e395e119f905f1f33687a6cea8c9fe8a8d53b0e (diff)
parent8e235191dd3501fc3562fe0654d41501ec9760d0 (diff)
downloadlatinime-9fe700ec4fceba1e061733795bc89ca9d0620525.tar.gz
latinime-9fe700ec4fceba1e061733795bc89ca9d0620525.tar.xz
latinime-9fe700ec4fceba1e061733795bc89ca9d0620525.zip
Merge "Fix moving the cursor inside composition in lang w/o spaces"
Diffstat (limited to 'java/src/com/android/inputmethod/latin')
-rw-r--r--java/src/com/android/inputmethod/latin/WordComposer.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/java/src/com/android/inputmethod/latin/WordComposer.java b/java/src/com/android/inputmethod/latin/WordComposer.java
index 78860d87d..e605bfe78 100644
--- a/java/src/com/android/inputmethod/latin/WordComposer.java
+++ b/java/src/com/android/inputmethod/latin/WordComposer.java
@@ -231,8 +231,6 @@ public final class WordComposer {
* @return true if the cursor is still inside the composing word, false otherwise.
*/
public boolean moveCursorByAndReturnIfInsideComposingWord(final int expectedMoveAmount) {
- // TODO: should uncommit the composing feedback
- mCombinerChain.reset();
int actualMoveAmountWithinWord = 0;
int cursorPos = mCursorPositionWithinWord;
// TODO: Don't make that copy. We can do this directly from mTypedWordCache.
@@ -256,6 +254,8 @@ public final class WordComposer {
// so the result would not be inside the composing word.
if (actualMoveAmountWithinWord != expectedMoveAmount) return false;
mCursorPositionWithinWord = cursorPos;
+ mCombinerChain.applyProcessedEvent(mCombinerChain.processEvent(mEvents,
+ Event.createCursorMovedEvent(cursorPos)));
return true;
}