mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-04-09 08:21:01 -04:00
term: line-wrap: use term_cursor_{down,left}
This commit is contained in:
parent
b9719673a1
commit
bbce760ab0
1 changed files with 4 additions and 4 deletions
|
|
@ -2352,11 +2352,11 @@ print_linewrap(struct terminal *term)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (term->grid->cursor.point.row == term->scroll_region.end - 1) {
|
if (term->grid->cursor.point.row == term->scroll_region.end - 1)
|
||||||
term_scroll(term, 1);
|
term_scroll(term, 1);
|
||||||
term_cursor_to(term, term->grid->cursor.point.row, 0);
|
else
|
||||||
} else
|
term_cursor_down(term, 1);
|
||||||
term_cursor_to(term, min(term->grid->cursor.point.row + 1, term->rows - 1), 0);
|
term_cursor_left(term, term->grid->cursor.point.col);
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline void
|
static inline void
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue