fix autocomplete error

This commit is contained in:
Nicolas Constant 2022-12-10 22:26:06 -05:00
parent 55a855d046
commit b6ea1d8d43
No known key found for this signature in database
GPG Key ID: 1E9F677FB01A5688
1 changed files with 1 additions and 1 deletions

View File

@ -320,7 +320,7 @@ export class CreateStatusComponent implements OnInit, OnDestroy {
};
const word = this.getWordByPos(currentSection, caretPosition - offset);
if (!lastCharIsSpace && word && word.length > 0 && (word.startsWith('@') || word.startsWith('#'))) {
if (!lastCharIsSpace && word && word.length > 1 && (word.startsWith('@') || word.startsWith('#'))) {
this.autosuggestData = word;
return;
}