mirror of
https://gitee.com/zlgopen/awtk.git
synced 2024-12-02 20:18:22 +08:00
fix text_edit_preedit_clear
This commit is contained in:
parent
b7882bdf7f
commit
a2b4897309
@ -1320,6 +1320,7 @@ ret_t text_edit_preedit_clear(text_edit_t* text_edit) {
|
||||
if (impl->preedit_chars_nr > 0) {
|
||||
text_edit_remove(text_edit, impl->state.cursor - impl->preedit_chars_nr,
|
||||
impl->preedit_chars_nr);
|
||||
impl->state.cursor = impl->state.cursor - impl->preedit_chars_nr;
|
||||
impl->preedit_chars_nr = 0;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user