aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/latin/WordComposer.java
diff options
context:
space:
mode:
authorJean Chalard <jchalard@google.com>2015-01-16 03:27:10 +0000
committerAndroid Git Automerger <android-git-automerger@android.com>2015-01-16 03:27:10 +0000
commita0b9e57af47bc20b6fedec802f4ada8c5b5ba8c5 (patch)
tree6bb8da2376fea33accccdf18a9c904cfcf24ccee /java/src/com/android/inputmethod/latin/WordComposer.java
parentc0f4d016f776039ff6d0c930c5e51a08b349943b (diff)
parent9fe700ec4fceba1e061733795bc89ca9d0620525 (diff)
downloadlatinime-a0b9e57af47bc20b6fedec802f4ada8c5b5ba8c5.tar.gz
latinime-a0b9e57af47bc20b6fedec802f4ada8c5b5ba8c5.tar.xz
latinime-a0b9e57af47bc20b6fedec802f4ada8c5b5ba8c5.zip
am 9fe700ec: Merge "Fix moving the cursor inside composition in lang w/o spaces"
* commit '9fe700ec4fceba1e061733795bc89ca9d0620525': Fix moving the cursor inside composition in lang w/o spaces
Diffstat (limited to 'java/src/com/android/inputmethod/latin/WordComposer.java')
-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;
}