mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2024-11-28 05:59:05 +03:00
Pill-AutoComplete: add newline as word separator
Closes https://github.com/SchildiChat/SchildiChat-android/issues/122 Change-Id: Ie6c86aaf571aadd1e4977a1503c7d76f00c6d052
This commit is contained in:
parent
d1ee0dea6b
commit
45c4f632e7
1 changed files with 1 additions and 1 deletions
|
@ -228,7 +228,7 @@ class AutoCompleter @AssistedInject constructor(
|
|||
}
|
||||
|
||||
// Detect next word separator
|
||||
var endIndex = editable.indexOf(" ", startIndex)
|
||||
var endIndex = editable.indexOfAny(listOf(" ", "\n"), startIndex)
|
||||
if (endIndex == -1) {
|
||||
endIndex = editable.length
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue