diff options
author | 2014-03-12 08:04:42 +0000 | |
---|---|---|
committer | 2014-03-12 08:04:42 +0000 | |
commit | 13b446b8fb37cb7dfbc79eafa8705796b47d6dcb (patch) | |
tree | cd6077409843c8b73cbd7961c180fc13a4800718 /java/src/com/android/inputmethod/latin/RichInputConnection.java | |
parent | 4d73199c0641ae9daecbadead30d116725a8284c (diff) | |
parent | e93a7232d17caffdca2ab3f62881ab0ae31f1cd5 (diff) | |
download | latinime-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/com/android/inputmethod/latin/RichInputConnection.java')
-rw-r--r-- | java/src/com/android/inputmethod/latin/RichInputConnection.java | 4 |
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); |