From 8cff861f38c3b82a1504d88a8a067bc32dc10da7 Mon Sep 17 00:00:00 2001 From: Daniel Eklöf Date: Sat, 29 Jun 2019 21:16:06 +0200 Subject: terminal: move print_needs_wrap from grid to terminal --- vt.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'vt.c') diff --git a/vt.c b/vt.c index 92991672..c6d05d46 100644 --- a/vt.c +++ b/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; } -- cgit v1.3