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
main
Jean Chalard 2014-03-12 01:39:25 -07:00 committed by Android Git Automerger
commit 5241acab26
1 changed files with 2 additions and 2 deletions

View File

@ -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);