From 4f365403c557ad9977a78186ea83ab81b31cd375 Mon Sep 17 00:00:00 2001 From: Ken Wakasa Date: Wed, 13 Jul 2011 13:49:13 +0900 Subject: [PATCH] Fix build breakage Change-Id: Id2c2d152f54d00842ef9e200ccdce1e13cc128cb --- java/src/com/android/inputmethod/latin/LatinIME.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java/src/com/android/inputmethod/latin/LatinIME.java b/java/src/com/android/inputmethod/latin/LatinIME.java index 53dce7191..5304d830d 100644 --- a/java/src/com/android/inputmethod/latin/LatinIME.java +++ b/java/src/com/android/inputmethod/latin/LatinIME.java @@ -1805,7 +1805,7 @@ public class LatinIME extends InputMethodServiceCompatWrapper implements Keyboar if (deleteChar) ic.deleteSurroundingText(1, 0); final CharSequence textToTheLeft = ic.getTextBeforeCursor(mCommittedLength, 0); final int toDeleteLength = (!TextUtils.isEmpty(textToTheLeft) - && mSettingsValues.isWordSeparator(toTheLeft.charAt(0))) + && mSettingsValues.isWordSeparator(textToTheLeft.charAt(0))) ? mCommittedLength - 1 : mCommittedLength; ic.deleteSurroundingText(toDeleteLength, 0);