mirror of
https://gitee.com/zlgopen/awtk.git
synced 2024-12-02 12:08:16 +08:00
format code
This commit is contained in:
parent
eed1d106f5
commit
2b5baff56c
@ -427,8 +427,7 @@ static ret_t text_edit_layout_impl(text_edit_t* text_edit) {
|
|||||||
if (impl->state.cursor > offset && !impl->single_line) {
|
if (impl->state.cursor > offset && !impl->single_line) {
|
||||||
impl->state.cursor = offset;
|
impl->state.cursor = offset;
|
||||||
impl->last_line_number = max_rows;
|
impl->last_line_number = max_rows;
|
||||||
text_edit_set_caret_pos(impl, iter->x, offset ? impl->line_height * (i - 1) : 0,
|
text_edit_set_caret_pos(impl, iter->x, offset ? impl->line_height * (i - 1) : 0, c->font_size);
|
||||||
c->font_size);
|
|
||||||
} else if (offset < size) {
|
} else if (offset < size) {
|
||||||
text->size = offset;
|
text->size = offset;
|
||||||
text->str[offset] = 0;
|
text->str[offset] = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user