cellImeJp: fix deadlock

This commit is contained in:
Megamouse 2024-01-20 17:44:00 +01:00
parent 58dd0198dd
commit 675ed82c0b

View File

@ -758,8 +758,10 @@ static error_code cellImeJpConvertCancel(CellImeJpHandle hImeJpHandle)
return CELL_IMEJP_ERROR_ERR; return CELL_IMEJP_ERROR_ERR;
} }
// TODO: only cancel all if cursor is at 0 manager.converted_string.clear();
return cellImeJpAllConvertCancel(hImeJpHandle); manager.input_state = CELL_IMEJP_BEFORE_CONVERT;
return CELL_OK;
} }
static error_code cellImeJpExtendConvertArea(CellImeJpHandle hImeJpHandle) static error_code cellImeJpExtendConvertArea(CellImeJpHandle hImeJpHandle)