mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-03-06 01:40:22 -05:00
terminal: move print_needs_wrap from grid to terminal
This commit is contained in:
parent
a8f4cb55af
commit
8cff861f38
3 changed files with 4 additions and 5 deletions
4
vt.c
4
vt.c
|
|
@ -670,7 +670,7 @@ action(struct terminal *term, enum action action, uint8_t c)
|
|||
break;
|
||||
|
||||
case ACTION_PRINT: {
|
||||
if (term->grid.print_needs_wrap) {
|
||||
if (term->print_needs_wrap) {
|
||||
if (term->cursor.row == term->scroll_region.end - 1) {
|
||||
term_scroll(term, 1);
|
||||
term_cursor_to(term, term->cursor.row, 0);
|
||||
|
|
@ -697,7 +697,7 @@ action(struct terminal *term, enum action action, uint8_t c)
|
|||
if (term->cursor.col < term->cols - 1)
|
||||
term_cursor_right(term, 1);
|
||||
else
|
||||
term->grid.print_needs_wrap = true;
|
||||
term->print_needs_wrap = true;
|
||||
|
||||
break;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue