Loading java/src/com/android/inputmethod/latin/RecapitalizeStatus.java +4 −1 Original line number Diff line number Diff line Loading @@ -163,7 +163,10 @@ public class RecapitalizeStatus { final int codePoint = mStringBefore.codePointBefore(nonWhitespaceEnd); if (!Character.isWhitespace(codePoint)) break; } if (0 != nonWhitespaceStart || len != nonWhitespaceEnd) { // If nonWhitespaceStart >= nonWhitespaceEnd, that means the selection contained only // whitespace, so we leave it as is. if ((0 != nonWhitespaceStart || len != nonWhitespaceEnd) && nonWhitespaceStart < nonWhitespaceEnd) { mCursorEndAfter = mCursorStartBefore + nonWhitespaceEnd; mCursorStartBefore = mCursorStartAfter = mCursorStartBefore + nonWhitespaceStart; mStringAfter = mStringBefore = Loading Loading
java/src/com/android/inputmethod/latin/RecapitalizeStatus.java +4 −1 Original line number Diff line number Diff line Loading @@ -163,7 +163,10 @@ public class RecapitalizeStatus { final int codePoint = mStringBefore.codePointBefore(nonWhitespaceEnd); if (!Character.isWhitespace(codePoint)) break; } if (0 != nonWhitespaceStart || len != nonWhitespaceEnd) { // If nonWhitespaceStart >= nonWhitespaceEnd, that means the selection contained only // whitespace, so we leave it as is. if ((0 != nonWhitespaceStart || len != nonWhitespaceEnd) && nonWhitespaceStart < nonWhitespaceEnd) { mCursorEndAfter = mCursorStartBefore + nonWhitespaceEnd; mCursorStartBefore = mCursorStartAfter = mCursorStartBefore + nonWhitespaceStart; mStringAfter = mStringBefore = Loading