mirror of
https://github.com/openharmony/miscservices_inputmethod.git
synced 2026-07-20 23:45:31 -04:00
Signed-off-by: lovechinamo <wangdongqi2@huawei.com>
Changes to be committed:
This commit is contained in:
@@ -386,7 +386,8 @@ using namespace MessageID;
|
||||
{
|
||||
IMSA_HILOGI("InputMethodController::GetTextBeforeCursor");
|
||||
if (!mTextString.empty()) {
|
||||
int32_t endPos = (mSelectNewEnd+number < static_cast<int32_t>(mTextString.size())) ? (mSelectNewEnd + number) : mTextString.size();
|
||||
int32_t endPos = (mSelectNewEnd+number < static_cast<int32_t>(mTextString.size())) ? \
|
||||
(mSelectNewEnd + number) : mTextString.size();
|
||||
return mTextString.substr(mSelectNewEnd, endPos);
|
||||
}
|
||||
return u"";
|
||||
|
||||
Reference in New Issue
Block a user