mirror of
https://github.com/lvgl/lvgl.git
synced 2025-01-14 06:42:58 +08:00
lv_textarea: fix character delete in password mode
This commit is contained in:
parent
479851e968
commit
13a53d077d
@ -16,6 +16,7 @@
|
||||
- `lv_tileview`: fix if not the {0;0} tile is created first
|
||||
- `lv_debug`: restructure to allow asserting in from `lv_misc` too
|
||||
- add assert if `_lv_mem_buf_get()` fails
|
||||
- `lv_textarea`: fix character delete in password mode
|
||||
|
||||
## v7.0.1 (01.06.2020)
|
||||
|
||||
|
@ -447,7 +447,7 @@ void lv_textarea_del_char(lv_obj_t * ta)
|
||||
|
||||
if(ext->pwd_mode != 0) {
|
||||
uint32_t byte_pos = _lv_txt_encoded_get_byte_id(ext->pwd_tmp, ext->cursor.pos - 1);
|
||||
_lv_txt_cut(ext->pwd_tmp, ext->cursor.pos - 1, _lv_txt_encoded_size(&label_txt[byte_pos]));
|
||||
_lv_txt_cut(ext->pwd_tmp, ext->cursor.pos - 1, _lv_txt_encoded_size(&ext->pwd_tmp[byte_pos]));
|
||||
|
||||
ext->pwd_tmp = lv_mem_realloc(ext->pwd_tmp, strlen(ext->pwd_tmp) + 1);
|
||||
LV_ASSERT_MEM(ext->pwd_tmp);
|
||||
|
Loading…
x
Reference in New Issue
Block a user