mirror of
https://github.com/openharmony/miscservices_inputmethod.git
synced 2026-07-19 12:08:05 -04:00
Signed-off-by: lovechinamo <wangdongqi2@huawei.com>
Changes to be committed: modified: frameworks/inputmethod_controller/src/input_method_controller.cpp
This commit is contained in:
@@ -386,7 +386,7 @@ using namespace MessageID;
|
||||
{
|
||||
constexpr unsigned int MAX_INT32_T = 2147483647;
|
||||
IMSA_HILOGI("InputMethodController::GetTextBeforeCursor");
|
||||
if (!mTextString.empty() && mTextString.size <= MAX_INT32_T) {
|
||||
if (!mTextString.empty() && mTextString.size() <= MAX_INT32_T) {
|
||||
int32_t endPos = (mSelectNewEnd + number < static_cast<int32_t>(mTextString.size()))
|
||||
? (mSelectNewEnd + number)
|
||||
: mTextString.size();
|
||||
|
||||
Reference in New Issue
Block a user