Revert "FIX: Close emoji autocomplete when the opening colon : is removed (#14102)" (#14112)

This reverts commit c74f116a48.

Unfortunately it appears to be making mention autocomplete fail
This commit is contained in:
Sam 2021-08-23 15:25:33 +10:00 committed by GitHub
parent d41aa5e9f5
commit f1701764a6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -580,7 +580,7 @@ export default function (options) {
}
// If we've backspaced past the beginning, cancel unless no key
if (cp - 1 <= completeStart && options.key) {
if (cp <= completeStart && options.key) {
closeAutocomplete();
return true;
}