aboutsummaryrefslogtreecommitdiffstats
path: root/java/src
diff options
context:
space:
mode:
authorJean Chalard <jchalard@google.com>2014-03-12 08:04:42 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2014-03-12 08:04:42 +0000
commit13b446b8fb37cb7dfbc79eafa8705796b47d6dcb (patch)
treecd6077409843c8b73cbd7961c180fc13a4800718 /java/src
parent4d73199c0641ae9daecbadead30d116725a8284c (diff)
parente93a7232d17caffdca2ab3f62881ab0ae31f1cd5 (diff)
downloadlatinime-13b446b8fb37cb7dfbc79eafa8705796b47d6dcb.tar.gz
latinime-13b446b8fb37cb7dfbc79eafa8705796b47d6dcb.tar.xz
latinime-13b446b8fb37cb7dfbc79eafa8705796b47d6dcb.zip
Merge "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);