aboutsummaryrefslogtreecommitdiffstats
path: root/java/src
diff options
context:
space:
mode:
authorJean Chalard <jchalard@google.com>2014-03-12 01:39:25 -0700
committerAndroid Git Automerger <android-git-automerger@android.com>2014-03-12 01:39:25 -0700
commit5241acab268ddf6acb9e916b8e4a72e623c39ddb (patch)
treecd6077409843c8b73cbd7961c180fc13a4800718 /java/src
parente988434074c48cc542a6c34f5f1f917147972748 (diff)
parent13b446b8fb37cb7dfbc79eafa8705796b47d6dcb (diff)
downloadlatinime-5241acab268ddf6acb9e916b8e4a72e623c39ddb.tar.gz
latinime-5241acab268ddf6acb9e916b8e4a72e623c39ddb.tar.xz
latinime-5241acab268ddf6acb9e916b8e4a72e623c39ddb.zip
am 13b446b8: Merge "Don\'t reset the value needed before it\'s used"
* commit '13b446b8fb37cb7dfbc79eafa8705796b47d6dcb': Don't reset the value needed before it's used
Diffstat (limited to 'java/src')
-rw-r--r--java/src/com/android/inputmethod/latin/RichInputConnection.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/java/src/com/android/inputmethod/latin/RichInputConnection.java b/java/src/com/android/inputmethod/latin/RichInputConnection.java
index 323256d1c..965518e34 100644
--- a/java/src/com/android/inputmethod/latin/RichInputConnection.java
+++ b/java/src/com/android/inputmethod/latin/RichInputConnection.java
@@ -357,9 +357,9 @@ public final class RichInputConnection {
mExpectedSelEnd -= beforeLength;
} else {
// There are fewer characters before the cursor in the buffer than we are being asked to
- // delete. Only delete what is there.
- mExpectedSelStart = 0;
+ // delete. Only delete what is there, and update the end with the amount deleted.
mExpectedSelEnd -= mExpectedSelStart;
+ mExpectedSelStart = 0;
}
if (null != mIC) {
mIC.deleteSurroundingText(beforeLength, afterLength);