typeahead: Move displaced comment to correct location.

This commit is contained in:
Rohitt Vashishtha 2018-08-06 15:26:02 +00:00 committed by Tim Abbott
parent 972e1d2d8b
commit 8a61ac3500
1 changed files with 1 additions and 1 deletions

View File

@ -361,7 +361,6 @@ exports.compose_content_begins_typeahead = function (query) {
}
if (this.options.completions.mention && current_token[0] === '@') {
// Don't autocomplete if there is a space following an '@'
current_token = current_token.substring(1);
if (current_token.startsWith('**')) {
current_token = current_token.substring(2);
@ -372,6 +371,7 @@ exports.compose_content_begins_typeahead = function (query) {
return false;
}
// Don't autocomplete if there is a space following an '@'
if (current_token[0] === " ") {
return false;
}