format code

This commit is contained in:
xianjimli 2020-09-11 17:55:28 +08:00
parent eed1d106f5
commit 2b5baff56c

View File

@ -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;