diff --git a/Telegram/SourceFiles/ui/widgets/input_fields.cpp b/Telegram/SourceFiles/ui/widgets/input_fields.cpp index 8fddd7afe9..cd6e4f5476 100644 --- a/Telegram/SourceFiles/ui/widgets/input_fields.cpp +++ b/Telegram/SourceFiles/ui/widgets/input_fields.cpp @@ -1987,7 +1987,6 @@ void InputField::processFormatting(int insertPosition, int insertEnd) { if (ch + 1 < textEnd && ch->isHighSurrogate() && (ch + 1)->isLowSurrogate()) { ++ch; - ++fragmentPosition; } } if (action.type != ActionType::Invalid) {