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:
parent
540158316e
commit
dffed4445d
@ -194,7 +194,8 @@ class AutoCompleter @AssistedInject constructor(
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Replace the word by its completion
|
// Replace the word by its completion
|
||||||
editable.replace(startIndex, endIndex, item)
|
editable.delete(startIndex, endIndex)
|
||||||
|
editable.insert(startIndex, item)
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user