diff --git a/es-core/src/components/TextEditComponent.cpp b/es-core/src/components/TextEditComponent.cpp index b33b685a8..360559b56 100644 --- a/es-core/src/components/TextEditComponent.cpp +++ b/es-core/src/components/TextEditComponent.cpp @@ -344,6 +344,9 @@ void TextEditComponent::onTextChanged() if (mCursor > static_cast(mText.length())) mCursor = static_cast(mText.length()); + + if (mCursorShapedText > static_cast(Utils::String::unicodeLength(mText))) + mCursorShapedText = static_cast(Utils::String::unicodeLength(mText)); } void TextEditComponent::onCursorChanged()