mirror of https://github.com/zulip/zulip.git
typeahead: Move displaced comment to correct location.
This commit is contained in:
parent
972e1d2d8b
commit
8a61ac3500
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue