fixing single character emoji searches retaining the original query

- not entirely sure why this works but replacing the replace with separate delete + insert commands allows the previous query to be fully removed
This commit is contained in:
Adam Brown 2021-11-26 11:57:47 +00:00
parent 540158316e
commit dffed4445d
1 changed files with 2 additions and 1 deletions

View File

@ -194,7 +194,8 @@ class AutoCompleter @AssistedInject constructor(
}
// Replace the word by its completion
editable.replace(startIndex, endIndex, item)
editable.delete(startIndex, endIndex)
editable.insert(startIndex, item)
return true
}