diff --git a/app/src/main/java/com/keylesspalace/tusky/util/MentionTokenizer.java b/app/src/main/java/com/keylesspalace/tusky/util/MentionTokenizer.java index f7bab03a7..fd8748e32 100644 --- a/app/src/main/java/com/keylesspalace/tusky/util/MentionTokenizer.java +++ b/app/src/main/java/com/keylesspalace/tusky/util/MentionTokenizer.java @@ -25,6 +25,7 @@ public class MentionTokenizer implements MultiAutoCompleteTextView.Tokenizer { public int findTokenStart(CharSequence text, int cursor) { int i = cursor; while (i > 0 && text.charAt(i - 1) != '@') { + if (!Character.isLetterOrDigit(text.charAt(i - 1))) return cursor; i--; } if (i < 1 || text.charAt(i - 1) != '@') {