mirror of
https://github.com/lvgl/lvgl.git
synced 2025-01-28 07:03:00 +08:00
Merge pull request #770 from manison/patch-typo-ta-add-char
Fix typo in new line char detection
This commit is contained in:
commit
b087c1153c
@ -190,7 +190,7 @@ void lv_ta_add_char(lv_obj_t * ta, uint32_t c)
|
||||
{
|
||||
lv_ta_ext_t * ext = lv_obj_get_ext_attr(ta);
|
||||
|
||||
if(ext->one_line && (c == '\n' || c == '\n')) {
|
||||
if(ext->one_line && (c == '\n' || c == '\r')) {
|
||||
LV_LOG_INFO("Text area: line break ignored in one-line mode");
|
||||
return;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user