fix: delete space after mention

This commit is contained in:
zlshames
2024-11-05 18:57:23 -05:00
parent 234793cdf0
commit e01d3dc68b

View File

@ -537,7 +537,7 @@ class MentionTextEditingController extends SpellCheckTextEditingController {
indexInNew += textSearchPart.length;
}
indexInNew = min(indexInNew, newText.length - 1);
indexInNew = min(indexInNew, newText.length);
if (indexInNew != -1) {
// Just in case