Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3239a62d authored by Keisuke Kuroyanagi's avatar Keisuke Kuroyanagi Committed by Android (Google) Code Review
Browse files

Merge "Fix: Wrong condition to detect selection shrink."

parents 517577ea 08f7fd4d
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -4045,9 +4045,9 @@ public class Editor {
                positionCursor = true;
            } else if (offset + mTouchWordOffset < mPreviousOffset) {
                // User is shrinking the selection.
                if (currLine > mPrevLine) {
                if (currLine < mPrevLine) {
                    // We're on a different line, so we'll snap to word boundaries.
                    offset = getWordStart(offset);
                    offset = start;
                }
                offset += mTouchWordOffset;
                positionCursor = true;