am 5bde3a61
: Fix an old bug in getting a word from the connected view.
* commit '5bde3a61633556afb16481680daefc7cabbf5890': Fix an old bug in getting a word from the connected view.
This commit is contained in:
commit
0da5d0d600
1 changed files with 3 additions and 8 deletions
|
@ -568,14 +568,9 @@ public final class RichInputConnection {
|
|||
}
|
||||
}
|
||||
|
||||
final int cursor = getCursorPosition();
|
||||
if (start >= 0 && cursor + end <= after.length() + before.length()) {
|
||||
String word = before.toString().substring(start, before.length())
|
||||
+ after.toString().substring(0, end);
|
||||
return new Range(before.length() - start, end, word);
|
||||
}
|
||||
|
||||
return null;
|
||||
final String word = before.toString().substring(start, before.length())
|
||||
+ after.toString().substring(0, end);
|
||||
return new Range(before.length() - start, end, word);
|
||||
}
|
||||
|
||||
public boolean isCursorTouchingWord(final SettingsValues settingsValues) {
|
||||
|
|
Loading…
Reference in a new issue