mirror of
https://gitlab.futo.org/keyboard/latinime.git
synced 2024-09-28 14:54:30 +01:00
Merge "Don't reset the value needed before it's used"
This commit is contained in:
commit
13b446b8fb
@ -357,9 +357,9 @@ public final class RichInputConnection {
|
|||||||
mExpectedSelEnd -= beforeLength;
|
mExpectedSelEnd -= beforeLength;
|
||||||
} else {
|
} else {
|
||||||
// There are fewer characters before the cursor in the buffer than we are being asked to
|
// There are fewer characters before the cursor in the buffer than we are being asked to
|
||||||
// delete. Only delete what is there.
|
// delete. Only delete what is there, and update the end with the amount deleted.
|
||||||
mExpectedSelStart = 0;
|
|
||||||
mExpectedSelEnd -= mExpectedSelStart;
|
mExpectedSelEnd -= mExpectedSelStart;
|
||||||
|
mExpectedSelStart = 0;
|
||||||
}
|
}
|
||||||
if (null != mIC) {
|
if (null != mIC) {
|
||||||
mIC.deleteSurroundingText(beforeLength, afterLength);
|
mIC.deleteSurroundingText(beforeLength, afterLength);
|
||||||
|
Loading…
Reference in New Issue
Block a user